~ubuntu-branches/ubuntu/wily/libxml2/wily-proposed

« back to all changes in this revision

Viewing changes to debian/patches/0026-fixing-a-ptotential-uninitialized-access.patch

  • Committer: Package Import Robot
  • Author(s): Aron Xu
  • Date: 2014-10-26 07:04:50 UTC
  • mfrom: (43.2.7 sid)
  • Revision ID: package-import@ubuntu.com-20141026070450-rmcqvcqn8peeuebs
Tags: 2.9.2+dfsg1-1
* New upstream release (Closes: #765722, CVE-2014-3660)
* Remove no-longer-needed upstream patches
* Update distro patch
* Std-ver: 3.9.5 -> 3.9.6, no change.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
From: Daniel Veillard <veillard@redhat.com>
2
 
Date: Thu, 6 Feb 2014 10:47:20 +0100
3
 
Subject: fixing a ptotential uninitialized access
4
 
 
5
 
---
6
 
 valid.c |    2 +-
7
 
 1 file changed, 1 insertion(+), 1 deletion(-)
8
 
 
9
 
diff --git a/valid.c b/valid.c
10
 
index e0832e7..114bb72 100644
11
 
--- a/valid.c
12
 
+++ b/valid.c
13
 
@@ -6948,7 +6948,7 @@ xmlValidGetValidElements(xmlNode *prev, xmlNode *next, const xmlChar **names,
14
 
                          int max) {
15
 
     xmlValidCtxt vctxt;
16
 
     int nb_valid_elements = 0;
17
 
-    const xmlChar *elements[256];
18
 
+    const xmlChar *elements[256]={0};
19
 
     int nb_elements = 0, i;
20
 
     const xmlChar *name;
21