2018-10-20 04:30 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0005454GNUnetutil librarypublic2018-10-03 20:45
ReporterFlorian Dold 
Assigned ToChristian Grothoff 
PrioritynormalSeverityminorReproducibilityhave not tried
Product Version 
Target VersionFixed in Version 
Summary0005454: argument parsing does not correctly parse/validate uints (and maybe others)
DescriptionI'm using gnunet-statistics here as an example, but it applies to all argument parsing in GNUnet and Taler.

This (as expected) doesn't work:

  $ gnunet-statistics -o FOO
  You must pass a number to the `port' option.

However, when the prefix of the argument is a number, the rest is ignored:

  $ gnunet-statistics -o 1FOO
  <tries to connect>

I ran into this when forgetting a space in a script (for Taler), as

  gnunet-statistics -o 1--another-flag

simply ignores "--another-flag" *without* any errors.
TagsNo tags attached.
Attached Files

-Relationships Relation Graph ] Dependency Graph ]

There are no notes attached to this issue.

-Issue History
Date Modified Username Field Change
2018-10-03 20:45 Florian Dold New Issue
2018-10-03 20:45 Florian Dold Status new => assigned
2018-10-03 20:45 Florian Dold Assigned To => Christian Grothoff
+Issue History