diff options
Diffstat (limited to 'pkgs/development/libraries/libyaml/cve-2013-6393_a.patch')
-rw-r--r-- | pkgs/development/libraries/libyaml/cve-2013-6393_a.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libyaml/cve-2013-6393_a.patch b/pkgs/development/libraries/libyaml/cve-2013-6393_a.patch new file mode 100644 index 00000000000..130107341f7 --- /dev/null +++ b/pkgs/development/libraries/libyaml/cve-2013-6393_a.patch @@ -0,0 +1,11 @@ +--- a/src/scanner.c ++++ a/src/scanner.c +@@ -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; |