diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2016-04-27 12:10:54 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2016-04-27 12:11:46 -0700 |
commit | 6ed53f13bc39d9a0252549e98a2a59441fb2351f (patch) | |
tree | 7a4a3762b44c5b65194f8dfbd7e2e32fdd78765a /lib/mktime.c | |
parent | d92a0d9248948b152662f97b07c06a1279d4f6f6 (diff) | |
download | gnulib-6ed53f13bc39d9a0252549e98a2a59441fb2351f.tar.gz |
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.
Diffstat (limited to 'lib/mktime.c')
0 files changed, 0 insertions, 0 deletions