On 22/08/2017 14:29, Paul Eggert wrote: > On 08/22/2017 09:49 AM, Bruno Haible wrote: >> It obviously does not handle the 'struct globnames' allocated with >> the FLEXSIZEOF macro (lines 1719..1732). > > Yes, and I installed the attached patch into Gnulib to try to fix this. I > hope it is enough to pacify clang's Undefined Sanitizer. If not, Tim, please > let us know, and thanks for reporting the problem. > > I'll CC: this to Adhemerval Zanella, who's working on porting Gnulib glob.c > back to glibc, as I worry that this patch (or something like it) should also > be ported back. >
Thanks for heads up Paul, I intend to send the sync patch for gnulib glob today. In fact I decided to *not* sync flexmember because with following patch I intend to send (which are in the original thread) make flexmember unnecessary.