]> git.ipfire.org Git - thirdparty/asterisk.git/commit
func_json: Fix crashes for some types
authorBastian Triller <bastian.triller@gmail.com>
Thu, 21 Sep 2023 06:24:37 +0000 (08:24 +0200)
committerasterisk-org-access-app[bot] <120671045+asterisk-org-access-app[bot]@users.noreply.github.com>
Thu, 5 Oct 2023 14:38:05 +0000 (14:38 +0000)
commit8536ce8c38cd680d1a2e57d605ff6a39f7eededb
treec692850d7e4744b431139a6d41a35f69a98808c1
parentd60c3c36e714a318dca8282719490af9e33c3261
func_json: Fix crashes for some types

This commit fixes crashes in JSON_DECODE() for types null, true, false
and real numbers.

In addition it ensures that a path is not deeper than 32 levels.

Also allow root object to be an array.

Add unit tests for above cases.
funcs/func_json.c
include/asterisk/json.h
main/json.c