Merge "[third_party/ogg] Narrow UBSAN suppression" into main
diff --git a/BUILD.gn b/BUILD.gn
index 1241c5c..4402277 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -17,9 +17,10 @@
 
   public_configs = [ ":ogg_include_config" ]
 
-  # TODO(47041): UBSan has found an instance of undefined behavior in this target.
-  # framing.c:637:31: runtime error: applying zero offset to null pointer
-  configs += [ "//build/config:temporarily_disable_ubsan_do_not_use" ]
-
   configs += [ "//build/config:Wno-conversion" ]
+  configs += [ ":undefined_behavior_pointer_overflow" ]
+}
+
+config("undefined_behavior_pointer_overflow") {
+  cflags = [ "-fno-sanitize=pointer-overflow" ]
 }