]> Savannah Git Hosting - gnulib.git/commit
canonicalize: fix pointer indexing bugs
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 10 Sep 2020 21:25:51 +0000 (14:25 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 10 Sep 2020 21:50:04 +0000 (14:50 -0700)
commitd468be5b5950bc5f2e0a5a4fbaeb0ea6a88c4c9f
tree32a3a416e47b573441c6a1cd8d7cc3b0c4c4cd4a
parent44358d4d165bcc96ceacb2c7e903053b87ab339c
canonicalize: fix pointer indexing bugs

Problem reported by Florian Weimer in:
https://lists.gnu.org/r/bug-gnulib/2020-09/msg00025.html
* lib/canonicalize-lgpl.c (__realpath):
* lib/canonicalize.c (canonicalize_filename_mode):
Do not generate a pointer past the end of the array.
* lib/canonicalize.c (canonicalize_filename_mode):
Do not use a pointer after passing it to realloc.
ChangeLog
lib/canonicalize-lgpl.c
lib/canonicalize.c