tdf#120703 (PVS): handle failed (re)allocations
V769 The 'readBuf' pointer in the 'readBuf + readAll' expression could be nullptr.
In such case, resulting value will be senseless and it should not be used.
Check lines: 171, 166.
V701 realloc() possible leak: when realloc() fails in allocating memory, original
pointer 'readBuf' is lost. Consider assigning realloc() to a temporary
pointer.
Change-Id: I2e15a1abb79516dd42d64256463333bb54eab5b8
Reviewed-on: https://gerrit.libreoffice.org/62117
Tested-by: Jenkins
Reviewed-by:
Mike Kaganski <mike.kaganski@collabora.com>
Showing
Please
register
or
sign in
to comment