strparse: make Curl_str_number() return error for no digits

Closes #16319
This commit is contained in:
Daniel Stenberg 2025-02-14 08:46:26 +01:00
parent 5d194d942d
commit 130b6891c8
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
2 changed files with 5 additions and 2 deletions

View file

@ -33,6 +33,7 @@
#define STRE_BYTE 5
#define STRE_NEWLINE 6
#define STRE_OVERFLOW 7
#define STRE_NO_NUM 8
struct Curl_str {
const char *str;