Set a default GN enable_safe_libstdcxx value

Synchronize //build_overrides/build.gni with the Chromium file of the
same path and set enable_safe_libstdcxx to true by default. This more
properly reassembles https://crrev.com/1266874 in PDFium.

Bug: pdfium:2144
Change-Id: If20961778d16a8cfacd17de1c256901c0dcd3131
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/117650
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Thomas Sepez <tsepez@google.com>
diff --git a/build_overrides/build.gni b/build_overrides/build.gni
index ca8910d..11e4a6a 100644
--- a/build_overrides/build.gni
+++ b/build_overrides/build.gni
@@ -17,6 +17,12 @@
 # Enables assertions on safety checks in libc++.
 enable_safe_libcxx = true
 
+# Enable assertions on safety checks, also in libstdc++
+#
+# In case the C++ standard library implementation used is libstdc++, then
+# enable its own hardening checks.
+enable_safe_libstdcxx = true
+
 # Whether to use the neon FPU instruction set or not.
 if (current_cpu == "arm") {
   arm_use_neon = true