[pacman-dev] [PATCH] Prevent stack overflow on symbolic link access.

Andrew Gregory andrew.gregory.8 at gmail.com
Thu Jun 9 20:25:36 UTC 2016


On 06/09/16 at 10:11pm, Tobias Stöckmann wrote:
> 
> > On June 9, 2016 at 7:31 PM Andrew Gregory <andrew.gregory.8 at gmail.com> wrote:
> > I don't follow your logic.  SSIZE_MAX is only guaranteed to be at
> > least 32,767.  PATH_MAX can easily be larger than that without coming
> > close to exhausting my system's resources.
> > 
> > apg
> 
> If SSIZE_MAX is just 32,767, then SIZE_MAX is 65,535. With such a small amount
> of addressable space, your resources are very quickly exhausted. Let alone that
> I don't remember a 16 bit memory operating system that is still supported.

SIZE_MAX is the maximum size of individual objects, not the entire
addressable space.


More information about the pacman-dev mailing list