aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2023-08-03 15:21:51 +0200
committerRichard Biener <rguenther@suse.de>2023-08-03 15:26:04 +0200
commita9b6043983b2ebd9d5c0f72043b17110b54f1910 (patch)
tree9bf8a47dfcbcc265d577699b892b446506ece1f9 /gcc
parent9524718654c3e4a13dd88bc1ac6409da1ec44e71 (diff)
downloadgcc-a9b6043983b2ebd9d5c0f72043b17110b54f1910.zip
gcc-a9b6043983b2ebd9d5c0f72043b17110b54f1910.tar.gz
gcc-a9b6043983b2ebd9d5c0f72043b17110b54f1910.tar.bz2
[libbacktrace] fix up broken test
zstdtest has some inline data where some testcases lack the uncompressed length field. Thus it computes that but still ends up allocating memory for the uncompressed buffer based on that (zero) length. Oops. Causes memory corruption if the allocator returns non-NULL. libbacktrace/ * zstdtest.c (test_samples): Properly compute the allocation size for the uncompressed data.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions