Commit f320c1ebec8a551bfd32d264371a1c4ab4c8f0d6

Paul Eggert 2017-08-22T10:13:50

glob: port to clang's Undefined Sanitizer Problem reported by Tim Rühsen in: http://lists.gnu.org/archive/html/bug-gnulib/2017-08/msg00144.html * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty. (glob_in_dir): Do not rely on undefined behavior in accessing struct members beyond their bounds. Use a flexible array member instead.