The following commit has been merged in the master branch:
commit 9f164d6bbb377955516f334939f317932d2536d9
Author: Antonio Valentino <antonio.valent...@tiscali.it>
Date:   Mon Dec 5 21:57:21 2011 +0100

    Workaround for a buffer overflow in the ALOS header reader program

diff --git a/debian/changelog b/debian/changelog
index a40b1b8..a970df6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,4 +2,4 @@ polsarpro (4.2.0+dfsg-1) unstable; urgency=low
 
   * Initial release (Closes: #606876)
 
- -- Antonio Valentino <antonio.valent...@tiscali.it>  Fri, 19 Aug 2011 
18:53:57 +0200
+ -- Antonio Valentino <antonio.valent...@tiscali.it>  Mon, 05 Dec 2011 
21:46:10 +0100
diff --git a/debian/patches/buffer-overflow.patch 
b/debian/patches/buffer-overflow.patch
new file mode 100644
index 0000000..3e151fd
--- /dev/null
+++ b/debian/patches/buffer-overflow.patch
@@ -0,0 +1,14 @@
+Workaround for a buffer overflow in the alos header reader program
+--- a/Soft/lib/alos_header.h
++++ b/Soft/lib/alos_header.h
+@@ -88,8 +88,8 @@
+ /* constants */
+ 
+ /*#define MAX_MISSING_PAIRS     5*/  /* Max pairs of missing rg lines/chan */
+-#define NAME_LEN             128     /* short string length */
+-#define LONG_NAME_LEN        128     /* long string length */
++#define NAME_LEN             512     /* short string length */
++#define LONG_NAME_LEN        512     /* long string length */
+ #define MAX_POLS               4     /* max number of pols: HH, HV, VV, VH */
+ 
+ 
/******************************************************************************
diff --git a/debian/patches/series b/debian/patches/series
index fc9a9ff..957eb86 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@ default-config.patch
 fix-build.patch
 spelling.patch
 launch-script.patch
+buffer-overflow.patch

-- 
Polarimetric SAR Data Processing and Educational Tool

_______________________________________________
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel

Reply via email to