diff options
-rw-r--r-- | extra/usb_updater/desc_parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extra/usb_updater/desc_parser.c b/extra/usb_updater/desc_parser.c index 04f144457c..6570c5f23e 100644 --- a/extra/usb_updater/desc_parser.c +++ b/extra/usb_updater/desc_parser.c @@ -91,7 +91,7 @@ static int get_hex_value(char *input, char **output) *output = NULL; value = strtol(input, &e, 16); - if (e && *e) { + if ((e && *e) || (strlen(input) > 8)) { fprintf(stderr, "Invalid hex value %s in section %d\n", input, section_count_); return -EINVAL; |