View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0008100 | Taler | exchange | public | 2024-01-17 15:48 | 2024-03-07 20:47 |
Reporter | fefe | Assigned To | Christian Grothoff | ||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Product Version | git (master) | ||||
Target Version | 0.9.4 | Fixed in Version | 0.9.4 | ||
Summary | 0008100: parse_restrictions: integer truncation | ||||
Description | This is in exchange/src/lib/exchange_api_common.c: 412 static enum GNUNET_GenericReturnValue 413 parse_restrictions (const json_t *jresta, 414 unsigned int *resta_len, 415 struct TALER_EXCHANGE_AccountRestriction **resta) 422 *resta_len = json_array_size (jresta); json_array_size returns size_t, so resta_len should either be a size_t* orr there should be a check or assertion here to make sure no truncation happened. | ||||
Tags | No tags attached. | ||||
|
Fixed in 91969f18..3db8ffe5 (by first assigning to a size_t, then asserting that unsigned int doens't change the numeric value). |
Date Modified | Username | Field | Change |
---|---|---|---|
2024-01-17 15:48 | fefe | New Issue | |
2024-01-17 15:48 | fefe | Status | new => assigned |
2024-01-17 15:48 | fefe | Assigned To | => Christian Grothoff |
2024-01-17 19:34 | Christian Grothoff | Status | assigned => resolved |
2024-01-17 19:34 | Christian Grothoff | Resolution | open => fixed |
2024-01-17 19:34 | Christian Grothoff | Fixed in Version | => 0.9.4 |
2024-01-17 19:34 | Christian Grothoff | Note Added: 0020901 | |
2024-01-17 19:35 | Christian Grothoff | Product Version | => git (master) |
2024-01-17 19:35 | Christian Grothoff | Target Version | => 0.9.4 |
2024-01-18 23:31 | Christian Grothoff | Relationship added | child of 0008112 |
2024-03-07 20:47 | Christian Grothoff | Status | resolved => closed |