[UBSan][rgx] Temporarily disable UBSan

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

Bug: 44349
Change-Id: I5792234b6863eb4b09e476f5aba0825546161b52
diff --git a/BUILD.gn b/BUILD.gn
index 23a3b52..060033d 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -248,6 +248,10 @@
   configs += [ ":mt8167_driver_config" ]
 
   deps = driver_deps
+
+  # TODO(44349): UBSan has found an instance of undefined behavior in this target.
+  # Disable UBSan for this target temporarily until it is migrated into CI/CQ.
+  configs += [ "//build/config:temporarily_disable_ubsan_do_not_use" ]
 }
 
 source_set("src_no_hardware") {
@@ -270,6 +274,10 @@
     "$magma_build_root/tests/mock:bus_mapper",
     "$magma_build_root/tests/mock:mmio",
   ]
+
+  # TODO(44349): UBSan has found an instance of undefined behavior in this target.
+  # Disable UBSan for this target temporarily until it is migrated into CI/CQ.
+  configs += [ "//build/config:temporarily_disable_ubsan_do_not_use" ]
 }
 
 source_set("unit_tests") {