Paul Pluzhnikov f19e67884c Fix path length overflow in realpath [BZ #22786]
Integer addition overflow may cause stack buffer overflow
when realpath() input length is close to SSIZE_MAX.

2018-05-09  Paul Pluzhnikov  <ppluzhnikov@google.com>

	[BZ #22786]
	* stdlib/canonicalize.c (__realpath): Fix overflow in path length
	computation.
	* stdlib/Makefile (test-bz22786): New test.
	* stdlib/test-bz22786.c: New test.

(cherry picked from commit 5460617d1567657621107d895ee2dd83bc1f88f2)
2018-05-10 10:56:25 +00:00
..
2016-10-25 17:05:47 -02:00
2014-12-29 23:14:38 -05:00
2016-10-25 17:05:47 -02:00
2017-12-07 00:48:31 +00:00