jilles df71c47219 MFC r268576: 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.

PR:		195918
2014-12-14 18:30:30 +00:00
..
2014-08-29 02:21:02 +00:00
2014-05-21 07:21:36 +00:00
2014-01-20 23:23:29 +00:00
2014-08-28 18:11:05 +00:00
2013-06-02 17:55:00 +00:00
2014-10-05 02:52:54 +00:00
2014-08-21 10:46:19 +00:00
2014-10-01 16:18:40 +00:00
2014-03-09 17:04:31 +00:00
2014-04-09 18:16:58 +00:00