View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0008044 | GNUnet | util library | public | 2024-01-09 15:24 | 2024-03-07 20:26 |
Reporter | fefe | Assigned To | Christian Grothoff | ||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Fixed in Version | 0.21.0 | ||||
Summary | 0008044: parse_fixed_data: integer overflow | ||||
Description | This is in gnunet/src/lib/json/json_helper.c. 52 static enum GNUNET_GenericReturnValue 53 parse_fixed_data (void *cls, 54 json_t *root, 55 struct GNUNET_JSON_Specification *spec) 56 { 57 const char *enc; 58 unsigned int len; 59 60 if (NULL == (enc = json_string_value (root))) 61 { 62 GNUNET_break_op (0); 63 return GNUNET_SYSERR; 64 } 65 len = strlen (enc); 66 if (((len * 5) / 8) != spec->ptr_size) 67 { len should be a size_t instead of an int, and the * 5 can overflow even after turning len into a size_t. | ||||
Tags | No tags attached. | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2024-01-09 15:24 | fefe | New Issue | |
2024-01-09 19:11 | Christian Grothoff | Changeset attached | => gnunet master bef6c0a6 |
2024-01-09 19:11 | Christian Grothoff | Note Added: 0020846 | |
2024-01-09 19:11 | Christian Grothoff | Assigned To | => Christian Grothoff |
2024-01-09 19:11 | Christian Grothoff | Status | new => resolved |
2024-01-09 19:11 | Christian Grothoff | Resolution | open => fixed |
2024-01-09 20:10 | Christian Grothoff | Project | Taler => GNUnet |
2024-01-09 20:10 | Christian Grothoff | Category | other => util library |
2024-03-07 20:26 | schanzen | Fixed in Version | => 0.21.0 |
2024-03-07 20:26 | schanzen | Note Added: 0021802 | |
2024-03-07 20:26 | schanzen | Status | resolved => closed |