diff --git a/external/dtoa/C6011.patch.0 b/external/dtoa/C6011.patch.0 new file mode 100644 index 000000000000..a5e55e34f179 --- /dev/null +++ b/external/dtoa/C6011.patch.0 @@ -0,0 +1,10 @@ +--- src/dtoa.c 2024-05-01 10:10:49.702762020 +0100 ++++ src/dtoa.c 2024-05-01 10:11:45.308831303 +0100 +@@ -1606,6 +1606,7 @@ + else + rv = (Bigint*)MALLOC(len*sizeof(double)); + #endif ++ assert(rv && "Don't handle OOM conditions"); + rv->k = k; + rv->maxwds = x; + } diff --git a/external/dtoa/UnpackedTarball_dtoa.mk b/external/dtoa/UnpackedTarball_dtoa.mk index bc4fe55b5a7e..d1702085cd6f 100644 --- a/external/dtoa/UnpackedTarball_dtoa.mk +++ b/external/dtoa/UnpackedTarball_dtoa.mk @@ -17,6 +17,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,dtoa, \ external/dtoa/include_header.patch \ external/dtoa/coverity.patch \ external/dtoa/ubsan.patch.0 \ + external/dtoa/C6011.patch.0 \ )) # vim: set noet sw=4 ts=4: