[rapidjson] Temporarily disable UBSan for rapidjson

UBSan was reporting applying a non-zero offset to a nullptr.
Disable UBSan for this target for now, then we will
come back to fix it once asan-ubsan is migrated into CQ.

Bug: 44348
Change-Id: I5fc7f11aee8f4019df1cb09d0a53716bd841b0a8
diff --git a/BUILD.gn b/BUILD.gn
index 92b7a01..b5c483e 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -40,6 +40,10 @@
     "RAPIDJSON_HAS_CXX11_TYPETRAITS",
     "RAPIDJSON_HAS_CXX11_NOEXCEPT",
   ]
+
+  # TODO(44348): UBSan has found an instance of undefined behavior in this target.
+  # Disable UBSan for this target temporarily until it is migrated into CI/CQ.
+  cflags = [ "-fno-sanitize=undefined" ]
 }
 
 source_set("rapidjson") {