Re: [PATCH] libiberty: prevent null dereferencing on dlang_type

2021-10-01 Thread Luís Ferreira via Gcc-patches
Hi, Yes, I'm sorry, I forgot to add --format=dlang parameter. This patch fixes it https://gcc.gnu.org/pipermail/gcc-patches/2021-September/580544.html . On Fri, 2021-10-01 at 07:23 -0700, H.J. Lu wrote: > On Thu, Sep 23, 2021 at 8:55 AM Jeff Law via Gcc-patches > wrote: > > > > > > > > On

Re: [PATCH] libiberty: prevent null dereferencing on dlang_type

2021-10-01 Thread H.J. Lu via Gcc-patches
On Thu, Sep 23, 2021 at 8:55 AM Jeff Law via Gcc-patches wrote: > > > > On 9/23/2021 4:17 AM, ibuclaw--- via Gcc-patches wrote: > >> On 22/09/2021 03:31 Luís Ferreira wrote: > >> > >> > >> This patch prevents dereferencing a null reference on a crafted > >> malformed magled name, often causing

Re: [PATCH] libiberty: prevent null dereferencing on dlang_type

2021-09-23 Thread Jeff Law via Gcc-patches
On 9/23/2021 4:17 AM, ibuclaw--- via Gcc-patches wrote: On 22/09/2021 03:31 Luís Ferreira wrote: This patch prevents dereferencing a null reference on a crafted malformed magled name, often causing SIGSEGV to be raised. OK, seems reasonable to me. I pushed this to the trunk. Thanks,

Re: [PATCH] libiberty: prevent null dereferencing on dlang_type

2021-09-23 Thread ibuclaw--- via Gcc-patches
> On 22/09/2021 03:31 Luís Ferreira wrote: > > > This patch prevents dereferencing a null reference on a crafted > malformed magled name, often causing SIGSEGV to be raised. > OK, seems reasonable to me. > Signed-off-by: Luís Ferreira > --- > libiberty/d-demangle.c | 2 +-

[PATCH] libiberty: prevent null dereferencing on dlang_type

2021-09-21 Thread Luís Ferreira
This patch prevents dereferencing a null reference on a crafted malformed magled name, often causing SIGSEGV to be raised. Signed-off-by: Luís Ferreira --- libiberty/d-demangle.c | 2 +- libiberty/testsuite/d-demangle-expected | 5 - 2 files changed, 5 insertions(+), 2