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-27 20:53:07 +00:00
2014-05-31 22:25:45 +00:00
2014-02-26 21:38:42 +00:00
2013-07-25 15:08:41 +00:00
2014-05-09 13:27:30 +00:00
2012-01-01 22:17:12 +00:00
2013-04-07 16:28:36 +00:00
2011-06-18 23:43:28 +00:00
2014-02-25 03:05:43 +00:00
2013-07-25 19:48:15 +00:00
2009-12-24 18:41:14 +00:00
2013-07-25 15:08:41 +00:00