forked from pool/libyaml
wrapped strings (bnc#907809) CVE-2014-9130.patch contains the fix OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libyaml?expand=0&rev=15
17 lines
613 B
Diff
17 lines
613 B
Diff
diff --git a/src/scanner.c b/src/scanner.c
|
|
index 88d4fa5..c5f3d2f 100644
|
|
--- a/src/scanner.c
|
|
+++ b/src/scanner.c
|
|
@@ -1110,7 +1110,9 @@ yaml_parser_save_simple_key(yaml_parser_t *parser)
|
|
* line. Therefore it is always allowed. But we add a check anyway.
|
|
*/
|
|
|
|
- assert(parser->simple_key_allowed || !required); /* Impossible. */
|
|
+ /* XXX This caused:
|
|
+ * https://bitbucket.org/xi/libyaml/issue/10/wrapped-strings-cause-assert-failure
|
|
+ assert(parser->simple_key_allowed || !required); */ /* Impossible. */
|
|
|
|
/*
|
|
* If the current position may start a simple key, save it.
|
|
|