diff options
-rw-r--r-- | external/nss/UnpackedTarball_nss.mk | 3 | ||||
-rw-r--r-- | external/nss/ubsan.patch.0 | 13 |
2 files changed, 15 insertions, 1 deletions
diff --git a/external/nss/UnpackedTarball_nss.mk b/external/nss/UnpackedTarball_nss.mk index 11839c4e624a..0f166c9f9cbe 100644 --- a/external/nss/UnpackedTarball_nss.mk +++ b/external/nss/UnpackedTarball_nss.mk @@ -22,7 +22,8 @@ $(eval $(call gb_UnpackedTarball_add_patches,nss,\ $(if $(filter WNTGCC,$(OS)$(COM)),external/nss/nspr-4.9-build.patch.3 \ external/nss/nss-3.13.3-build.patch.3 \ external/nss/nss.mingw.patch.3) \ - external/nss/nspr-build-config.patch \ + external/nss/nspr-build-config.patch \ + external/nss/ubsan.patch.0 \ )) # nss-pem is only needed for internal curl to read the NSS CA database diff --git a/external/nss/ubsan.patch.0 b/external/nss/ubsan.patch.0 new file mode 100644 index 000000000000..298ca40d5c09 --- /dev/null +++ b/external/nss/ubsan.patch.0 @@ -0,0 +1,13 @@ +--- nss/lib/libpkix/pkix/util/pkix_tools.h ++++ nss/lib/libpkix/pkix/util/pkix_tools.h +@@ -1458,8 +1458,8 @@ + + extern PRLogModuleInfo *pkixLog; + +-#define PKIX_MAGIC_HEADER LL_INIT(0xFEEDC0FF, 0xEEFACADE) +-#define PKIX_MAGIC_HEADER_DESTROYED LL_INIT(0xBAADF00D, 0xDEADBEEF) ++#define PKIX_MAGIC_HEADER LL_INIT(0xFEEDC0FFU, 0xEEFACADEU) ++#define PKIX_MAGIC_HEADER_DESTROYED LL_INIT(0xBAADF00DU, 0xDEADBEEFU) + + /* see source file for function documentation */ + |