[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#822465: wheezy-pu: package highlight/3.9-1



Package: release.debian.org
Severity: normal
Tags: wheezy
User: release.debian.org@packages.debian.org
Usertags: pu

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

André (upstream) asked for this bug to be fixed in oldstable, based on
a discussion with a user. Since he also provided the one line patch,
this seems OK to me.

Debdiff attached, unless reportbug outwits me.
- -- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (900, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.4.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQGcBAEBCAAGBQJXHSEAAAoJEPIClx2kp54sJpcL/2tyWVxKFBOr9uojMNa1f6EK
+sbyvgbxuWZX60QhbOmEleX78sQc+M8kp21+jNmlBz+2zCCDd9m+k9gUSLjH2eYo
AfHy8Ug2p4wNkxUyCFfGiv89ujz37xdhSGAw4f7h746F7DUtal0K0h00B4RiFWkH
fltPV4ZzSZ0vmL3/KhGOLfa7WOGiwSRILDY2tExhU+rqWUci8lPfODdf6273xYiJ
4j0k74N2iaLrDSLbtfdUBprP7+iYn9FKBBU1g1+SHIn9VVucgGH/qXb5H5Q5HCmi
pKWrPmlsQ1h6HM2g0jTjVa5TtbT5whwpCNfTuSKnoi+ibzZycLmn5cdOC0dg/9vV
H8ZasJ+FoH2Cjh3mmgj199Mp4zpOslhZbcxw0h0RG90dHpN8LmuPWm9I+kqNgy10
HRfU7cBiNiZ9xLx7CPBe10Q80WTAAe6AQZuaJmmrkfI/AbzfOQHtvd/gsRdAX5MH
kkdMurYzrs/+RHQx5FyW3Hq7CMiObSu0Sqb+hKetQg==
=ossO
-----END PGP SIGNATURE-----
diff -Nru highlight-3.9/debian/changelog highlight-3.9/debian/changelog
--- highlight-3.9/debian/changelog	2012-05-23 13:32:13.000000000 -0300
+++ highlight-3.9/debian/changelog	2016-04-24 16:29:43.000000000 -0300
@@ -1,3 +1,10 @@
+highlight (3.9-1+deb7u1) oldstable; urgency=medium
+
+  * Backport fix for segfault with undefined syntax and --force
+    (Closes: #698718)
+
+ -- David Bremner <bremner@debian.org>  Sun, 24 Apr 2016 15:30:00 -0300
+
 highlight (3.9-1) unstable; urgency=low
 
   * New upstream release.
diff -Nru highlight-3.9/debian/patches/0001-3.13-fixed-segfault-with-undefined-syntax-and-applie.patch highlight-3.9/debian/patches/0001-3.13-fixed-segfault-with-undefined-syntax-and-applie.patch
--- highlight-3.9/debian/patches/0001-3.13-fixed-segfault-with-undefined-syntax-and-applie.patch	1969-12-31 20:00:00.000000000 -0400
+++ highlight-3.9/debian/patches/0001-3.13-fixed-segfault-with-undefined-syntax-and-applie.patch	2016-04-24 16:30:11.000000000 -0300
@@ -0,0 +1,22 @@
+From 8431b43d76ee8109295cc516dc934e84372f6f21 Mon Sep 17 00:00:00 2001
+From: saalen <saalen@b214f192-c5d8-4e29-a392-b12ed3af51bf>
+Date: Tue, 22 Jan 2013 19:20:10 +0000
+Subject: [PATCH] 3.13 fixed segfault with undefined syntax and applied --force
+
+git-svn-id: svn://svn.code.sf.net/p/syntaxhighlight/code@83 b214f192-c5d8-4e29-a392-b12ed3af51bf
+---
+ src/cli/main.cpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/cli/main.cpp b/src/cli/main.cpp
+index 93addd1..c8eeee8 100644
+--- a/src/cli/main.cpp
++++ b/src/cli/main.cpp
+@@ -581,6 +581,7 @@ int HLCmdLineApp::run ( const int argc, const char*argv[] )
+         {
+             suffix = guessFileType ( getFileSuffix ( inFileList[i] ), inFileList[i] );
+         }
++        if ( suffix.empty()  && options.forceOutput()) suffix="txt"; //avoid segfault
+         if ( suffix.empty() )
+         {
+             if ( !options.enableBatchMode() )
diff -Nru highlight-3.9/debian/patches/series highlight-3.9/debian/patches/series
--- highlight-3.9/debian/patches/series	1969-12-31 20:00:00.000000000 -0400
+++ highlight-3.9/debian/patches/series	2016-04-24 16:30:11.000000000 -0300
@@ -0,0 +1,2 @@
+# exported from git by git-debcherry
+0001-3.13-fixed-segfault-with-undefined-syntax-and-applie.patch

Reply to: