Re: gmake-4.2.90 regression (segmentation fault in sum_up_to_nul )

2019-09-24 Thread David A. Wheeler
It is extremely dangerous to dereference outside and allocated range, and it really should never be done today. As you well know, in C that is undefined. However over the last few years the C compilers have been getting increasingly aggressive to implement optimizations that assume that no one

Re: gmake-4.2.90 regression (segmentation fault in sum_up_to_nul )

2019-09-24 Thread Dmitry Goncharov via Bug reports and discussion for GNU make
It indeed crashes with a core dump. I observed this on sunos/gcc when p+3 points to the next page. This should be easy to reproduce with a tool like libefence. Another way to reproduce is to run $(wildcard hello*) in a directory with thousands of files. regards, Dmitry On Tue, Sep 24, 2019 at

Re: gmake-4.2.90 regression (segmentation fault in sum_up_to_nul )

2019-09-24 Thread Paul Smith
On Tue, 2019-09-03 at 04:14 +, Dmitry Goncharov via Bug reports and discussion for GNU make wrote: > sum_up_to_nul reads 4 bytes starting from the passed string 'p'. > 'p' can have fewer than 4 bytes. Usually there more allocated space > after 'p', which prevents this reading from manifesting