Files
semi-libc/src
Rich Felker 769f53598e make globfree safe after failed glob from over-length argument
commit 0dc99ac413 added input length
checking to avoid unsafe VLA allocation, but put it in the wrong
place, before the glob_t structure was zeroed out. while POSIX isn't
clear on whether it's permitted to call globfree after glob failed
with GLOB_NOSPACE, making it safe is clearly better than letting
uninitialized pointers get passed to free in non-conforming callers.

while we're fixing this, change strlen check to the idiomatic strnlen
version to avoid unbounded input scanning before returning an error.
2017-01-02 19:47:12 -05:00
..
2016-10-20 16:55:05 -04:00
2016-08-30 16:39:54 -04:00
2016-11-11 23:06:21 -05:00
2016-05-08 22:57:40 -04:00
2016-10-20 01:32:27 -04:00
2016-11-11 23:06:21 -05:00
2016-03-02 21:35:40 -05:00
2016-12-16 22:39:19 -05:00
2017-01-02 17:30:40 -05:00