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
vagrant-compose-yaml-0.1.3 vendor/bundle/ruby/2.2.0/gems/nokogiri-1.6.7.1/patches/libxslt/0014-Fix-for-bug-436589.patch
vagrant-compose-yaml-0.1.2 vendor/bundle/ruby/2.2.0/gems/nokogiri-1.6.7.1/patches/libxslt/0014-Fix-for-bug-436589.patch
vagrant-compose-yaml-0.1.1 vendor/bundle/ruby/2.2.0/gems/nokogiri-1.6.7.1/patches/libxslt/0014-Fix-for-bug-436589.patch
vagrant-compose-yaml-0.1.0 vendor/bundle/ruby/2.2.0/gems/nokogiri-1.6.7.1/patches/libxslt/0014-Fix-for-bug-436589.patch
vagrant-unbundled-1.8.5.2 vendor/bundle/ruby/2.3.0/gems/nokogiri-1.6.7.2/patches/libxslt/0014-Fix-for-bug-436589.patch
vagrant-unbundled-1.8.5.1 vendor/bundle/ruby/2.3.0/gems/nokogiri-1.6.7.2/patches/libxslt/0014-Fix-for-bug-436589.patch
vagrant-unbundled-1.8.4.2 vendor/bundle/ruby/2.3.0/gems/nokogiri-1.6.7.2/patches/libxslt/0014-Fix-for-bug-436589.patch
vagrant-unbundled-1.8.4.1 vendor/bundle/ruby/2.3.0/gems/nokogiri-1.6.7.2/patches/libxslt/0014-Fix-for-bug-436589.patch
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/nokogiri-1.6.7.2/patches/libxslt/0014-Fix-for-bug-436589.patch
nokogiri-1.6.8.rc3 patches/libxslt/0014-Fix-for-bug-436589.patch
nokogiri-1.6.7.2 patches/libxslt/0014-Fix-for-bug-436589.patch
nokogiri-1.6.8.rc2 patches/libxslt/0014-Fix-for-bug-436589.patch
vagrant-unbundled-1.8.1.1 vendor/bundle/ruby/2.3.0/gems/nokogiri-1.6.7.1/patches/libxslt/0014-Fix-for-bug-436589.patch
nokogiri-1.6.8.rc1 patches/libxslt/0014-Fix-for-bug-436589.patch
nokogiri-1.6.7.1 patches/libxslt/0014-Fix-for-bug-436589.patch
nokogiri-1.6.7 patches/libxslt/0014-Fix-for-bug-436589.patch
nokogiri-1.6.7.rc4 patches/libxslt/0014-Fix-for-bug-436589.patch
nokogiri-1.6.6.4 ports/patches/libxslt/0014-Fix-for-bug-436589.patch
nokogiri-1.6.6.4-java ports/patches/libxslt/0014-Fix-for-bug-436589.patch
nokogiri-1.6.6.3 ports/patches/libxslt/0014-Fix-for-bug-436589.patch