office-gobmx/external/dtoa/C6011.patch.0
Caolán McNamara 867eee280b 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
2024-05-01 13:24:20 +02:00

10 lines
272 B
Text

--- 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;
}