]> andersk Git - libyaml.git/commitdiff
Fix CVE-2014-9130 assertion failure caused by wrapped strings
authorAnders Kaseorg <andersk@mit.edu>
Sat, 29 Nov 2014 02:15:51 +0000 (21:15 -0500)
committerAnders Kaseorg <andersk@mit.edu>
Sat, 29 Nov 2014 03:04:39 +0000 (22:04 -0500)
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
debian/changelog
debian/patches/CVE-2014-9130.patch [new file with mode: 0644]
debian/patches/series [new file with mode: 0644]

index b22496b417dd868d1cf82e5f5c7e41137f6935b9..a9c5a509c071f05852f9f3f5b5df5f1ca12e0e51 100644 (file)
@@ -1,3 +1,10 @@
+libyaml (0.1.6-3) UNRELEASED; urgency=high
+
+  * debian/patches/CVE-2014-9130.patch: Fix CVE-2014-9130 assertion
+    failure caused by wrapped strings.  (Closes: #771366)
+
+ -- Anders Kaseorg <andersk@mit.edu>  Fri, 28 Nov 2014 21:14:24 -0500
+
 libyaml (0.1.6-2) unstable; urgency=medium
 
   * Move doxygen from Build-Depends to Build-Depends-Indep.
diff --git a/debian/patches/CVE-2014-9130.patch b/debian/patches/CVE-2014-9130.patch
new file mode 100644 (file)
index 0000000..0160618
--- /dev/null
@@ -0,0 +1,32 @@
+From: Kirill Simonov <xi@resolvent.net>
+Subject: Removed invalid simple key assertion (thank to Jonathan Gray).
+Origin: upstream, https://bitbucket.org/xi/libyaml/commits/2b9156756423e967cfd09a61d125d883fca6f4f2
+Bug: https://bitbucket.org/xi/libyaml/issue/10
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=771366
+Last-Update: 2014-11-28
+
+---
+ src/scanner.c | 7 -------
+ 1 file changed, 7 deletions(-)
+
+diff --git a/src/scanner.c b/src/scanner.c
+index 88d4fa5..5ec0be0 100644
+--- a/src/scanner.c
++++ b/src/scanner.c
+@@ -1106,13 +1106,6 @@ yaml_parser_save_simple_key(yaml_parser_t *parser)
+             && parser->indent == (ptrdiff_t)parser->mark.column);
+     /*
+-     * A simple key is required only when it is the first token in the current
+-     * line.  Therefore it is always allowed.  But we add a check anyway.
+-     */
+-
+-    assert(parser->simple_key_allowed || !required);    /* Impossible. */
+-
+-    /*
+      * If the current position may start a simple key, save it.
+      */
+-- 
+2.2.0
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644 (file)
index 0000000..bd38a0a
--- /dev/null
@@ -0,0 +1 @@
+CVE-2014-9130.patch
This page took 0.187982 seconds and 5 git commands to generate.