diff options
-rw-r--r-- | external/graphite/UnpackedTarball_graphite.mk | 6 | ||||
-rw-r--r-- | external/graphite/ubsan.patch | 11 |
2 files changed, 17 insertions, 0 deletions
diff --git a/external/graphite/UnpackedTarball_graphite.mk b/external/graphite/UnpackedTarball_graphite.mk index 0abd4b657d91..464fcc256069 100644 --- a/external/graphite/UnpackedTarball_graphite.mk +++ b/external/graphite/UnpackedTarball_graphite.mk @@ -11,4 +11,10 @@ $(eval $(call gb_UnpackedTarball_UnpackedTarball,graphite)) $(eval $(call gb_UnpackedTarball_set_tarball,graphite,$(GRAPHITE_TARBALL))) +$(eval $(call gb_UnpackedTarball_set_patchlevel,graphite,0)) + +$(eval $(call gb_UnpackedTarball_add_patches,graphite, \ + external/graphite/ubsan.patch \ +)) + # vim: set noet sw=4 ts=4: diff --git a/external/graphite/ubsan.patch b/external/graphite/ubsan.patch new file mode 100644 index 000000000000..fd7a08f82ed6 --- /dev/null +++ b/external/graphite/ubsan.patch @@ -0,0 +1,11 @@ +--- src/gr_face.cpp ++++ src/gr_face.cpp +@@ -95,7 +95,7 @@ + + Face *res = new Face(appFaceHandle, *ops); + if (res && load_face(*res, faceOptions)) +- return static_cast<gr_face *>(res); ++ return reinterpret_cast<gr_face *>(res); + + delete res; + return 0; |