Browse Source

MT#55283 bail if Redis contains garbage data

Change-Id: I76f21d6c44f04e063cb57dd04f1f631dead0600a
pull/1907/head
Richard Fuchs 11 months ago
parent
commit
3bbf4d94a1
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      daemon/redis.c

+ 5
- 1
daemon/redis.c View File

@ -2031,7 +2031,7 @@ static void json_restore_call(struct redis *r, const str *callid, bool foreign)
if (!rr_jsonStr)
goto err1;
parser_arg root = {.json = json_root};
parser_arg root = {0};
if (rr_jsonStr->str[0] == '{') {
parser = json_parser_new();
@ -2058,6 +2058,10 @@ static void json_restore_call(struct redis *r, const str *callid, bool foreign)
redis_parser = &ng_parser_native;
root.benc = benc_root;
}
else {
err = "Unrecognised serial format";
goto err1;
}
c = call_get_or_create(callid, false);
err = "failed to create call struct";


Loading…
Cancel
Save