Re: [PATCH] PR fortran/95826 - Buffer overflows with PDTs and long symbols

2020-06-24 Thread Thomas Koenig via Gcc-patches
Hi Harald, Is the memory you allocate freed anywhere? We have a large number of memory leaks in the front end, but maybe we shouldn't add another one :-) my reading of the definition of XALLOCAVEC include/libiberty.h:#define XALLOCAVEC(T, N)((T *) alloca (sizeof (T) * (N))) and alloca(

Re: [PATCH] PR fortran/95826 - Buffer overflows with PDTs and long symbols

2020-06-24 Thread Harald Anlauf
Hi Thomas, > Is the memory you allocate freed anywhere? We have a large > number of memory leaks in the front end, but maybe we shouldn't > add another one :-) my reading of the definition of XALLOCAVEC include/libiberty.h:#define XALLOCAVEC(T, N)((T *) alloca (sizeof (T) * (N))) and allo

Re: [PATCH] PR fortran/95826 - Buffer overflows with PDTs and long symbols

2020-06-24 Thread Thomas Koenig via Gcc-patches
Hi Harald, here's another fix for a buffer overflow with long symbols. Is the memory you allocate freed anywhere? We have a large number of memory leaks in the front end, but maybe we shouldn't add another one :-) Best regards Thomas

[PATCH] PR fortran/95826 - Buffer overflows with PDTs and long symbols

2020-06-23 Thread Harald Anlauf
Dear all, here's another fix for a buffer overflow with long symbols. OK for master / backports? Regtested on x86_64-pc-linux-gnu. Thanks, Harald PR fortran/95826 - Buffer overflows with PDTs and long symbols With PDTs (parameterized derived types), name mangling results in variably long int