Package: icmake
Version: 7.12.2-1
Severity: wishlist
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu karmic ubuntu-patch


Hello Maintainer

In Ubuntu, we've applied the attached patch to achieve the following:

  * Merge from Debian unstable, remaining changes:
    - comp/backend.c: use strncpy instead of strcpy to fix a runtime
    buffer overflow while assigning version number to icmake header.
  * icm_bootstrap, icm_install, scripts/convert:
    - Replace #!/bin/sh with #!/bin/bash, fix FTBFS.


We thought you might be interested in doing the same. 


-- System Information:
Debian Release: lenny/sid
  APT prefers hardy-updates
  APT policy: (500, 'hardy-updates'), (500, 'hardy-security'), (500, 
'hardy-proposed'), (500, 'hardy-backports'), (500, 'hardy')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-16-generic (SMP w/2 CPU cores)
Locale: LANG=en_IN, LC_CTYPE=en_IN (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
--- icmake-7.12.2.orig/comp/backend.c
+++ icmake-7.12.2/comp/backend.c
@@ -49,7 +49,7 @@
 
     outbin(&opexit, sizeof(INT8));          /* generate op_ret at the end */
 
-    strcpy(hdr.version, version);           /* set the version */
+    strncpy(hdr.version, version, sizeof(hdr.version));           /* set the version */
 
     hdr.offset[0] = ftell(s_bin);           /* here the strings start */
 
--- icmake-7.12.2.orig/icm_bootstrap
+++ icmake-7.12.2/icm_bootstrap
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 
 if [ "$#" == "0" ] ; then
 echo "

--- icmake-7.12.2.orig/scripts/convert
+++ icmake-7.12.2/scripts/convert
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 
 SCRIPTNAME=$1
 DESTDIR=$2
only in patch2:
unchanged:
--- icmake-7.12.2.orig/icm_install
+++ icmake-7.12.2/icm_install
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 
 usage()
 {

Reply via email to