]> git.ipfire.org Git - thirdparty/glibc.git/commit
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)
committerAurelien Jarno <aurelien@aurel32.net>
Tue, 6 Jul 2021 19:04:13 +0000 (21:04 +0200)
commit27e892f6608e9d0da71884bb1422a735f6062850
treecdb32eb84e1a3bd3dabe6cb89c1af6237933e385
parent16949aeaa078b5994a333980d7a6cd5705d5e1f7
wordexp: handle overflow in positional parameter number (bug 28011)

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

(cherry picked from commit 5adda61f62b77384718b4c0d8336ade8f2b4b35c)
posix/wordexp-test.c
posix/wordexp.c