1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 10:42:39 +01:00
llvm-mirror/test/DebugInfo/dwarfdump-decompression-corrupt.test
Benjamin Kramer 7bd8a430c8 [Object] Verify object sizes before handing out StringRefs pointing out
of bounds.

This can only happen on corrupt input. Found by OSS-FUZZ!
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3228

llvm-svn: 312235
2017-08-31 12:27:10 +00:00

7 lines
248 B
Plaintext

REQUIRES: zlib
// dwarfdump-decompression-corrupt.elf-x86-64 is fuzzer output
RUN: llvm-dwarfdump %p/Inputs/dwarfdump-decompression-corrupt.elf-x86-64 2>&1 | FileCheck %s
CHECK: error: failed to decompress '', corrupted compressed section header