mirror of
https://github.com/opnsense/src.git
synced 2026-03-29 22:23:16 -04:00
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. |
||
|---|---|---|
| .. | ||
| env1.0 | ||
| exitstatus1.0 | ||
| mail1.0 | ||
| mail2.0 | ||
| Makefile | ||
| optind1.0 | ||
| optind2.0 | ||
| positional1.0 | ||
| positional2.0 | ||
| positional3.0 | ||
| positional4.0 | ||
| positional5.0 | ||
| pwd1.0 | ||
| pwd2.0 | ||