]> Savannah Git Hosting - gnulib.git/commit
time_rz: simplify CVE-2017-7476 fix
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 12 Nov 2020 03:20:42 +0000 (19:20 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 12 Nov 2020 03:21:20 +0000 (19:21 -0800)
commite2739ba6310893be93d01a23cbfed8d8dfb08966
treed48fe6972cc176bfbcc8fa3cdb37c92968a07958
parent00ffb79c529942eab5c81568808bd317c753213a
time_rz: simplify CVE-2017-7476 fix

* lib/time_rz.c: Do not include limits.h; I think it was included
under the mistaken impression that limits.h defines SIZE_MAX.
(SIZE_MAX): Remove.
(save_abbr): Put string length into a ptrdiff_t variable,
so that the size comparison works naturally.  This
fixes CVE-2017-7476 in a cleaner way.
ChangeLog
lib/time_rz.c