]> 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)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 6 Jul 2021 19:04:26 +0000 (19:04 +0000)
commit73886db6218e613bd6d4edf529f11e008a6c2fa6
tree768cbb7f22eb8215be46b230fcc113ec1223358b
parentc49cbcdc321dd31026955f7f170d0018848b3d2f
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)
NEWS
posix/wordexp-test.c
posix/wordexp.c