Sha256: 92d5df1075ebde9ec6d41b684e9ceb503875e7238cb941fa49602f0df3c8209d

Contents?: true

Size: 1.26 KB

Versions: 62

Compression:

Stored size: 1.26 KB

Contents

From 02b30799fe2f8a572f6eefb27b2b9f1265fc0db7 Mon Sep 17 00:00:00 2001
From: Imran Azeezullah <uqsazeez@uq.edu.au>
Date: Mon, 30 Sep 2013 10:18:03 +0800
Subject: [PATCH 14/14] Fix for bug 436589

https://bugzilla.gnome.org/show_bug.cgi?id=436589

Need to check availablility of argument before scanning it
---
 xsltproc/xsltproc.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/xsltproc/xsltproc.c b/xsltproc/xsltproc.c
index 45adf5d..b22df37 100644
--- a/xsltproc/xsltproc.c
+++ b/xsltproc/xsltproc.c
@@ -730,6 +730,11 @@ main(int argc, char **argv)
             int value;
 
             i++;
+            if (i == argc) {
+                fprintf(stderr, "XSLT maxdepth value not specified!\n");
+                return (2);
+            }
+
             if (sscanf(argv[i], "%d", &value) == 1) {
                 if (value > 0)
                     xsltMaxDepth = value;
@@ -748,6 +753,11 @@ main(int argc, char **argv)
             int value;
 
             i++;
+            if (i == argc) {
+                fprintf(stderr, "XML maxparserdepth value not specified!\n");
+                return (2);
+            }
+
             if (sscanf(argv[i], "%d", &value) == 1) {
                 if (value > 0)
                     xmlParserMaxDepth = value;
-- 
1.8.4.1

Version data entries

62 entries across 62 versions & 7 rubygems

Version Path
nokogiri-1.6.6.3-java ports/patches/libxslt/0014-Fix-for-bug-436589.patch
nokogiri-xmlsec1-0.0.11 ports/patches/libxslt/0014-Fix-for-bug-436589.patch
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/nokogiri-1.6.6.2/ports/patches/libxslt/0014-Fix-for-bug-436589.patch
nokogiri-1.6.7.rc3 patches/libxslt/0014-Fix-for-bug-436589.patch
nokogiri-1.6.7.rc2 patches/libxslt/0014-Fix-for-bug-436589.patch
solidus_backend-1.0.0.pre3 vendor/bundle/gems/nokogiri-1.6.6.2/ports/patches/libxslt/0014-Fix-for-bug-436589.patch
solidus_backend-1.0.0.pre2 vendor/bundle/gems/nokogiri-1.6.6.2/ports/patches/libxslt/0014-Fix-for-bug-436589.patch
solidus_backend-1.0.0.pre vendor/bundle/gems/nokogiri-1.6.6.2/ports/patches/libxslt/0014-Fix-for-bug-436589.patch
nokogiri-1.6.6.2-java ports/patches/libxslt/0014-Fix-for-bug-436589.patch
nokogiri-1.6.6.2 ports/patches/libxslt/0014-Fix-for-bug-436589.patch
nokogiri-1.6.6.1-java ports/patches/libxslt/0014-Fix-for-bug-436589.patch
nokogiri-1.6.6.1 ports/patches/libxslt/0014-Fix-for-bug-436589.patch
nokogiri-xmlsec1-0.0.10 ports/patches/libxslt/0014-Fix-for-bug-436589.patch
nokogiri-xmlsec1-0.0.9 ports/patches/libxslt/0014-Fix-for-bug-436589.patch
nokogiri-1.6.5 ports/patches/libxslt/0014-Fix-for-bug-436589.patch
nokogiri-1.6.5-java ports/patches/libxslt/0014-Fix-for-bug-436589.patch
nokogiri-1.6.4.1 ports/patches/libxslt/0014-Fix-for-bug-436589.patch
nokogiri-1.6.4.1-java ports/patches/libxslt/0014-Fix-for-bug-436589.patch
nokogiri-1.6.4 ports/patches/libxslt/0014-Fix-for-bug-436589.patch
nokogiri-1.6.4-java ports/patches/libxslt/0014-Fix-for-bug-436589.patch