summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/controller
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2014-12-14 18:30:30 +0000
committerjilles <jilles@FreeBSD.org>2014-12-14 18:30:30 +0000
commitdf71c472199af029bb45e07281be1a16bdc6dcc7 (patch)
tree7e89843a2c631463f878a11fbbc2bfc9afddd525 /sys/dev/usb/controller
parentaf32fb7fcebdcf67a0a8285e258a834fb669156e (diff)
downloadFreeBSD-src-df71c472199af029bb45e07281be1a16bdc6dcc7.zip
FreeBSD-src-df71c472199af029bb45e07281be1a16bdc6dcc7.tar.gz
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
Diffstat (limited to 'sys/dev/usb/controller')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud