David Hildenbrand 4b69d4c3d7 qapi: Fix string-input-visitor to reject NaN and infinities
The string-input-visitor happily accepts NaN and infinities when parsing
numbers (doubles). They shouldn't. Fix that.

Also, add two test cases, testing if "NaN" and "inf" is properly
rejected.

Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20181121164421.20780-4-david@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
2018-12-13 19:10:06 +01:00
..
2018-03-21 15:13:40 +01:00
2018-12-11 18:41:25 +01:00
2018-08-16 09:50:54 +01:00
2018-10-02 18:47:55 +02:00
2018-10-09 13:44:12 +02:00
2018-08-31 09:53:10 +02:00
2018-08-23 18:46:25 +02:00