]> Savannah Git Hosting - gnulib.git/commit
canonicalize: fix size overflow treatment
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 30 Dec 2020 03:34:59 +0000 (19:34 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 30 Dec 2020 03:35:40 +0000 (19:35 -0800)
commit649e713c1e5452204253cb1029ea22c1b6effa2e
tree60189a6b584c8f68ad746a57f1396523c3eea8b1
parent7f87a14c29ab184fcd1db5f85823483fb2b75c78
canonicalize: fix size overflow treatment

This also has some minor cleanups.
* lib/canonicalize-lgpl.c, lib/canonicalize.c: No need to include
stddef.h, since the code no longer refers directly to ptrdiff_t.
* lib/canonicalize-lgpl.c (realpath_stk):
* lib/canonicalize.c (canonicalize_filename_mode_stk):
Treat size overflow like other out-of-memory.
* lib/canonicalize.c: No need to include stdlib.h, since
the code no longer refers to stdlib.h functions (other
than those that canonicalize.h must declare).
* lib/canonicalize.c (canonicalize_filename_mode_stk):
Do not bother terminating the string result on error.
ChangeLog
lib/canonicalize-lgpl.c
lib/canonicalize.c