Paul Pluzhnikov af7519f7b3 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-17 14:10:16 +02:00
..
2017-05-20 19:04:43 -04:00
2016-10-25 17:05:47 -02:00
2017-06-07 17:08:21 -03:00
2017-06-07 17:08:21 -03:00
2014-12-29 23:14:38 -05:00
2016-10-25 17:05:47 -02:00