Package: tcpick
Version: 0.2.1-6

This started off as an ubuntu bug:
https://bugs.launchpad.net/ubuntu/+source/tcpick/+bug/1086534

There's a thinko/cut-n-paste in time.c:time_ascii where there is
an incorrect length memset; this causes fortify to kill it
in the Ubuntu built versions.

I don't see any upstream activity for years, so I'm not sure
there is really anywhere to report it there.

Dave

Here is my patch:

--- ../../../tcpick-0.2.1/src/time.c    2005-01-09 00:21:44.000000000 +0000
+++ src/time.c  2012-12-06 20:11:10.041288135 +0000
@@ -42,7 +42,7 @@
   tzp = (struct timezone * ) S_malloc( sizeof(struct timezone) );  

   memset(tp,  0, sizeof(struct timeval));  
-  memset(tzp, 0, sizeof(struct timeval));  
+  memset(tzp, 0, sizeof(struct timezone)); 

   if(gettimeofday(tp, tzp)) {


-- 
 -----Open up your eyes, open up your mind, open up your code -------   
/ Dr. David Alan Gilbert    |       Running GNU/Linux       | Happy  \ 
\ gro.gilbert @ treblig.org |                               | In Hex /
 \ _________________________|_____ http://www.treblig.org   |_______/


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to