mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
* iobuf.c (check_special_filename): Replaced is isdigit by digitp
to avoid passing negative values and potential locale problems. Problem noted by Christian Biere. * strgutil.c (strlwr,strcasecmp,strncasecmp): Make sure we don't pass a negative value. * miscutil.c (scan_isodatestr): Ditto.
This commit is contained in:
parent
d8a6bd3b84
commit
654276143b
4 changed files with 21 additions and 9 deletions
|
@ -1032,7 +1032,7 @@ check_special_filename ( const char *fname )
|
|||
int i;
|
||||
|
||||
fname += 2;
|
||||
for (i=0; isdigit (fname[i]); i++ )
|
||||
for (i=0; digitp (fname+i); i++ )
|
||||
;
|
||||
if ( !fname[i] )
|
||||
return atoi (fname);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue