Skip to content
Snippets Groups Projects
Commit ff6c0eaafb5e authored by Florian Weimer's avatar Florian Weimer
Browse files

yaml_parser_scan_tag_uri: fix int overflow leading to buffer overflow

parent bd68ada0e322
Branches
No related tags found
No related merge requests found
......@@ -2574,7 +2574,7 @@
/* Resize the string to include the head. */
while (string.end - string.start <= (int)length) {
while ((size_t)(string.end - string.start) <= length) {
if (!yaml_string_extend(&string.start, &string.pointer, &string.end)) {
parser->error = YAML_MEMORY_ERROR;
goto error;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment