glob: fix heap buffer overflow
commit2d1bd71ec70a31b01d01b734faa66bb1ed28961f
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 19 Oct 2017 19:39:45 +0000 (19 12:39 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 19 Oct 2017 19:40:31 +0000 (19 12:40 -0700)
tree42cef7dff9c9ced852f95d27db1f21fed3b7c6e1
parent0e14f025d2ad40e9fbe4222e3fda328df107e761
glob: fix heap buffer overflow

* lib/glob.c (glob): Fix off-by-one error introduced into
glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
https://sourceware.org/bugzilla/show_bug.cgi?id=22320
Fix suggested by Bruno Haible.
ChangeLog
lib/glob.c