]> Savannah Git Hosting - gnulib.git/commit
glob: size_t overflow checks
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 13 May 2016 06:08:22 +0000 (23:08 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 13 May 2016 06:10:58 +0000 (23:10 -0700)
commit7cf8f77f03d0ea6c5c6420498906cab29a98498d
treed7a47912a22f1d222393007416822eda7457bec5
parente4cee3c7310106621ecf00824f75d98ce721746e
glob: size_t overflow checks

* lib/glob.c (__has_builtin): New macro.
(size_add_wrapv, glob_use_alloca): New static functions.
(glob, glob_in_dir): Check for size_t overflow in several places,
and fix some size_t checks that were not quite right.
ChangeLog
lib/glob.c