mirror of
https://github.com/syoyo/tinygltf.git
synced 2026-06-08 03:03:50 +00:00
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -480,8 +480,9 @@ static char *cj_unescape_string(const char *p, const char *str_end,
|
||||
break;
|
||||
}
|
||||
default:
|
||||
*dst++ = (char)esc;
|
||||
break;
|
||||
/* Unknown escape sequence is invalid in JSON */
|
||||
free(out);
|
||||
return NULL;
|
||||
}
|
||||
} else if (c < 0x20u) {
|
||||
++p; /* skip invalid control char */
|
||||
|
||||
Reference in New Issue
Block a user