]> git.ipfire.org Git - thirdparty/hostap.git/commit
JSON: More explicit check for depth in arrays/objects
authorJouni Malinen <j@w1.fi>
Sun, 9 Feb 2025 16:17:39 +0000 (18:17 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 9 Feb 2025 17:08:30 +0000 (19:08 +0200)
commitc3fefaf4121582e742df9225e96b672c4097a438
tree6d6a82211895b2ab0267e99a1aa30379030aa783
parent50330cb919dc5a94dc0b0bb018b59bf5655f5a5e
JSON: More explicit check for depth in arrays/objects

Invalid state here was detected based on the parent token being in
JSON_STARTED state, but to be clearer for static analyzers, also check
explicitly that depth is not 0.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/utils/json.c