mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
json: Error out for objects and arrays that are nested too deep
Signed-off-by: Arun Raghavan <arun@arunraghavan.net>
This commit is contained in:
parent
5b1bd84902
commit
0c1dbf5c79
2 changed files with 19 additions and 10 deletions
|
|
@ -227,6 +227,8 @@ START_TEST(bad_test) {
|
|||
"1." /* Bad number string */,
|
||||
"1.e3" /* Bad number string */,
|
||||
"-" /* Bad number string */,
|
||||
"{ \"a\": { \"a\": { \"a\": { \"a\": { \"a\": { \"a\": { \"a\": { \"a\": { \"a\": { \"a\": { \"a\": { \"a\": { \"a\": { \"a\": { \"a\": { \"a\": { \"a\": { \"a\": { \"a\": { \"a\": { \"a\": { } } } } } } } } } } } } } } } } } } } } } }" /* Nested too deep */,
|
||||
"[ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ { \"a\": \"b\" } ] ] ] ] ] ] ] ] ] ] ] ] ] ] ] ] ] ] ] ]" /* Nested too deep */,
|
||||
};
|
||||
|
||||
for (i = 0; i < PA_ELEMENTSOF(bad_parse); i++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue