diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-01-29 12:07:47 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-01-29 12:07:47 +0000 |
commit | c26ee7ddc49f3aa15cd9e0ac6c85259d5c3f186e (patch) | |
tree | e64aa105be954ae515f37ac6e4f5af20a12dca42 /main/yaml/CVE-2014-9130.patch | |
parent | 308b940dd2591bfa8b77bc28343ff6a266d77d31 (diff) | |
download | aports-c26ee7ddc49f3aa15cd9e0ac6c85259d5c3f186e.tar.bz2 aports-c26ee7ddc49f3aa15cd9e0ac6c85259d5c3f186e.tar.xz |
main/yaml: security fix for CVE-2014-9130
ref #3771
Diffstat (limited to 'main/yaml/CVE-2014-9130.patch')
-rw-r--r-- | main/yaml/CVE-2014-9130.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/main/yaml/CVE-2014-9130.patch b/main/yaml/CVE-2014-9130.patch new file mode 100644 index 0000000000..00e15f32b4 --- /dev/null +++ b/main/yaml/CVE-2014-9130.patch @@ -0,0 +1,28 @@ +From e6aa721cc0e5a48f408c52355559fd36780ba32a Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Ingy=20d=C3=B6t=20Net?= <ingy@ingy.net> +Date: Fri, 28 Nov 2014 09:21:49 -0800 +Subject: [PATCH] Fix for https://bitbucket.org/xi/libyaml/issue/10/ + +https://bitbucket.org/xi/libyaml/issue/10/wrapped-strings-cause-assert-failure + +Commenting out the assert makes the scanner do the right thing and +results in just a simple parse failure. +--- + src/scanner.c | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +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. |