View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0005326 | GNUnet | util library | public | 2018-05-10 11:18 | 2019-02-28 11:17 |
| Reporter | Marcello Stanisci | Assigned To | Feideus | ||
| Priority | low | Severity | tweak | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Target Version | 0.11.0 | Fixed in Version | 0.11.0 | ||
| Summary | 0005326: getopt blindly accept any number given on the command line | ||||
| Description | Say that a option '-n' is registered with GNUNET_GETOPT_option_uint(), and that it is then passed as '-n -4' from a command line invocation. The parsing helper (set_uint() function) will feed whatever value -4 is into memory to sscanf, which will silently parse it as "%u". This then gives some unexpected value that is not possible to check, as it *is* unsigned int indeed. | ||||
| Tags | No tags attached. | ||||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2018-05-10 11:18 | Marcello Stanisci | New Issue | |
| 2018-06-23 15:13 | Feideus | Assigned To | => Feideus |
| 2018-06-23 15:13 | Feideus | Status | new => assigned |
| 2018-06-24 12:24 | Feideus | Status | assigned => resolved |
| 2018-06-24 12:24 | Feideus | Resolution | open => fixed |
| 2018-06-24 12:24 | Feideus | Note Added: 0013066 | |
| 2019-02-12 09:20 | Christian Grothoff | Target Version | => 0.11.0 |
| 2019-02-20 12:24 | Christian Grothoff | Fixed in Version | => 0.11.0 |
| 2019-02-28 11:17 | Christian Grothoff | Status | resolved => closed |