mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-03-12 05:34:05 -04:00
json: Use state machine and fix 1E10 parsing
Use a state machine to check for valid numbers and fix the 1E10 parsing case. With help from Claude.
This commit is contained in:
parent
c745582ef5
commit
f6939a1cf0
2 changed files with 24 additions and 34 deletions
|
|
@ -740,6 +740,7 @@ PWTEST(json_float_check)
|
|||
{ "-1.", 1, 0 },
|
||||
|
||||
{ "-.0", 1, 0 },
|
||||
{ "-1E10", 1, 1 },
|
||||
|
||||
};
|
||||
unsigned i;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue