diff options
author | Luís Ferreira <contact@lsferreira.net> | 2021-09-23 11:54:00 -0400 |
---|---|---|
committer | Jeff Law <jeffreyalaw@gmail.com> | 2021-09-23 11:54:00 -0400 |
commit | b3585c0836e729bed56b9afd4292177673a25ca0 (patch) | |
tree | c0df980cedac78eca6069c9ccb657abdc4565f03 /libiberty/testsuite | |
parent | 5481040197402be6dfee265bd2ff5a4c88e30505 (diff) | |
download | gcc-b3585c0836e729bed56b9afd4292177673a25ca0.zip gcc-b3585c0836e729bed56b9afd4292177673a25ca0.tar.gz gcc-b3585c0836e729bed56b9afd4292177673a25ca0.tar.bz2 |
libiberty: prevent null dereferencing on dlang_type
libiberty/
* d-demangle.c (dlang_Type): Validate MANGLED is nonnull.
* testsuite/d-demangle-expected: New test.
Diffstat (limited to 'libiberty/testsuite')
-rw-r--r-- | libiberty/testsuite/d-demangle-expected | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libiberty/testsuite/d-demangle-expected b/libiberty/testsuite/d-demangle-expected index c35185c..799f472 100644 --- a/libiberty/testsuite/d-demangle-expected +++ b/libiberty/testsuite/d-demangle-expected @@ -991,11 +991,14 @@ _D88 _D5__T1aZv _D5__T1aZv # ---format=dlang _D00 _D00 # --format=dlang +_D01_D +_D01_D +# +--format=dlang _D9223372036854775817 _D9223372036854775817 # |