]> Savannah Git Hosting - gnulib.git/commit
xstrtol: prohibit monstrosities like "1bB"
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 27 Apr 2016 19:10:54 +0000 (12:10 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 27 Apr 2016 19:11:46 +0000 (12:11 -0700)
commit6ed53f13bc39d9a0252549e98a2a59441fb2351f
tree7a4a3762b44c5b65194f8dfbd7e2e32fdd78765a
parentd92a0d9248948b152662f97b07c06a1279d4f6f6
xstrtol: prohibit monstrosities like "1bB"

Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
* lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
"B" only if the first suffix needs a base.
* tests/test-xstrtol.sh: Test this.
ChangeLog
lib/xstrtol.c
tests/test-xstrtol.sh