WaE: C6011 Dereferencing NULL pointer warnings
Change-Id: I5a4d2982b5d980704dfc19fd92d01fd8aeefe144 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166952 Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com> Tested-by: Jenkins
This commit is contained in:
parent
ced78dc7ab
commit
867eee280b
2 changed files with 11 additions and 0 deletions
10
external/dtoa/C6011.patch.0
vendored
Normal file
10
external/dtoa/C6011.patch.0
vendored
Normal file
|
@ -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;
|
||||
}
|
1
external/dtoa/UnpackedTarball_dtoa.mk
vendored
1
external/dtoa/UnpackedTarball_dtoa.mk
vendored
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue