Jilles Tjoelker 7b9104c0a9 sh: Correctly handle positional parameters beyond INT_MAX on 64-bit systems.
Currently, there can be no more than INT_MAX positional parameters. Make
sure to treat all higher ones as unset to avoid incorrect results and
crashes.

On 64-bit systems, our atoi() takes the low 32 bits of the strtol() and
sign-extends them.

On 32-bit systems, the call to atoi() returned INT_MAX for too high values
and there is not enough address space for so many positional parameters, so
there was no issue.
2014-07-12 21:54:11 +00:00
..
2011-05-13 16:29:57 +00:00
2013-03-15 20:12:54 +00:00
2013-04-28 22:52:43 +00:00
2013-06-02 17:55:00 +00:00
2013-04-27 21:59:43 +00:00
2013-03-15 20:12:54 +00:00
2012-07-15 21:12:22 +00:00