[PATCH] wordexp: handle overflow in positional parameter number (bug 28011)
authorAndreas Schwab <schwab@linux-m68k.org>
Fri, 25 Jun 2021 13:02:47 +0000 (15:02 +0200)
committerHelmut Grohne <helmut@subdivi.de>
Sat, 8 Oct 2022 15:53:16 +0000 (16:53 +0100)
commit891423030c7262c6470b8a0f45a341b35b144cc6
tree3e4280513686ebdc967695c463d73ea7cdf5239e
parentcefd02455a064eaaff3ac4e90bc2e5b9ef04681f
[PATCH] wordexp: handle overflow in positional parameter number (bug 28011)

Use strtoul instead of atoi so that overflow can be detected.

Gbp-Pq: Topic all
Gbp-Pq: Name git-CVE-2021-35942-wordexp-handle-overflow-in-positional-parameter-numb.diff
posix/wordexp-test.c
posix/wordexp.c