mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-15 08:29:45 +00:00
FS-8160: properly handle malformed json when parsing json with \u at the end of a json string
This commit is contained in:
parent
79f158911e
commit
cf892528a1
@ -204,7 +204,7 @@ static const char *parse_string(cJSON *item,const char *str)
|
|||||||
break;
|
break;
|
||||||
default: *ptr2++=*ptr; break;
|
default: *ptr2++=*ptr; break;
|
||||||
}
|
}
|
||||||
ptr++;
|
if (*ptr) ptr++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*ptr2=0;
|
*ptr2=0;
|
||||||
|
@ -204,7 +204,7 @@ static const char *parse_string(cJSON *item,const char *str)
|
|||||||
break;
|
break;
|
||||||
default: *ptr2++=*ptr; break;
|
default: *ptr2++=*ptr; break;
|
||||||
}
|
}
|
||||||
ptr++;
|
if (*ptr) ptr++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*ptr2=0;
|
*ptr2=0;
|
||||||
|
@ -204,7 +204,7 @@ static const char *parse_string(cJSON *item,const char *str)
|
|||||||
break;
|
break;
|
||||||
default: *ptr2++=*ptr; break;
|
default: *ptr2++=*ptr; break;
|
||||||
}
|
}
|
||||||
ptr++;
|
if (*ptr) ptr++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*ptr2=0;
|
*ptr2=0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user