parse_options: fail on more malformed options
authorBill Spitzak <spitzak@gmail.com>
Wed, 20 Aug 2014 01:13:09 +0000 (18:13 -0700)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Thu, 11 Sep 2014 09:36:55 +0000 (12:36 +0300)
commit3011493e9b57d558f700367a8a20afd4c1b54711
tree570b1749d4ab19a9083a1367988c6a7af302eb83
parent4b1a0a1d07b4312e90bc20ff13d465add90a41ff
parse_options: fail on more malformed options

Fail on trailing text after numbers, such as --width=100mm

Fail on any text after booleans, such as --flag=false

Also fixed reading of memory after the null terminator of a long
option with no = sign in it.

[Pekka Paalanen: some whitespace style fixes.]

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
shared/option-parser.c