Thanks Andrea. Based on inspection and testing a package built in my ppa
(https://launchpad.net/~sbeattie/+archive/ppa) with the patch applied, I
can confirm this fixes the issue. Attached is a debdiff

** Attachment added: 
"iozone-fix-buffer-overflow-in-gethostname-lp320615.debdiff"
   
http://launchpadlibrarian.net/25969204/iozone-fix-buffer-overflow-in-gethostname-lp320615.debdiff

** Description changed:

  christ...@ela:~$ apt-cache policy iozone3
  iozone3:
    Installiert: 308-1
    Kandidat: 308-1
    Versions-Tabelle:
   *** 308-1 0
          500 http://de.archive.ubuntu.com jaunty/multiverse Packages
          100 /var/lib/dpkg/status
  
  
  christ...@ela:~$ iozone
  *** buffer overflow detected ***: iozone terminated
  ======= Backtrace: =========
  /lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x48)[0xb7f88d38]
  /lib/tls/i686/cmov/libc.so.6[0xb7f86e40]
  /lib/tls/i686/cmov/libc.so.6[0xb7f88594]
  iozone[0x80841ca]
  /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5)[0xb7ea1775]
  iozone[0x8049b51]
  ======= Memory map: ========
  08048000-08093000 r-xp 00000000 08:01 2724513    /usr/bin/iozone
  08093000-08094000 r--p 0004a000 08:01 2724513    /usr/bin/iozone
  08094000-08095000 rw-p 0004b000 08:01 2724513    /usr/bin/iozone
  08095000-08239000 rw-p 08095000 00:00 0 
  0a054000-0a075000 rw-p 0a054000 00:00 0          [heap]
  b7e7b000-b7e88000 r-xp 00000000 08:01 1261595    /lib/libgcc_s.so.1
  b7e88000-b7e89000 r--p 0000c000 08:01 1261595    /lib/libgcc_s.so.1
  b7e89000-b7e8a000 rw-p 0000d000 08:01 1261595    /lib/libgcc_s.so.1
  b7e8a000-b7e8b000 rw-p b7e8a000 00:00 0 
  b7e8b000-b7fe7000 r-xp 00000000 08:01 1261827    
/lib/tls/i686/cmov/libc-2.9.so
  b7fe7000-b7fe9000 r--p 0015b000 08:01 1261827    
/lib/tls/i686/cmov/libc-2.9.so
  b7fe9000-b7fea000 rw-p 0015d000 08:01 1261827    
/lib/tls/i686/cmov/libc-2.9.so
  b7fea000-b7fee000 rw-p b7fea000 00:00 0 
  b7fee000-b7ff5000 r-xp 00000000 08:01 1261867    
/lib/tls/i686/cmov/librt-2.9.so
  b7ff5000-b7ff6000 r--p 00006000 08:01 1261867    
/lib/tls/i686/cmov/librt-2.9.so
  b7ff6000-b7ff7000 rw-p 00007000 08:01 1261867    
/lib/tls/i686/cmov/librt-2.9.so
  b7ff7000-b800c000 r-xp 00000000 08:01 1261849    
/lib/tls/i686/cmov/libpthread-2.9.so
  b800c000-b800d000 r--p 00014000 08:01 1261849    
/lib/tls/i686/cmov/libpthread-2.9.so
  b800d000-b800e000 rw-p 00015000 08:01 1261849    
/lib/tls/i686/cmov/libpthread-2.9.so
  b800e000-b8010000 rw-p b800e000 00:00 0 
  b8027000-b8029000 rw-p b8027000 00:00 0 
  b8029000-b802a000 r-xp b8029000 00:00 0          [vdso]
  b802a000-b8046000 r-xp 00000000 08:01 1261654    /lib/ld-2.9.so
  b8046000-b8047000 r--p 0001b000 08:01 1261654    /lib/ld-2.9.so
  b8047000-b8048000 rw-p 0001c000 08:01 1261654    /lib/ld-2.9.so
  bfc33000-bfc48000 rw-p bffeb000 00:00 0          [stack]
  Aborted (core dumped)
+ 
+ TESTCASE
+ 1. install iozone3
+ 2. run 'iozone -h' and see a backtrace like above
+ 3. install proposed version
+ 4. running 'iozone -h' should display the extensive command line argument 
options for iozone.
+ 
+ This is very little potential for regression here as iozone3 does not
+ work at all in jaunty.

-- 
iozone3 segfaults always
https://bugs.launchpad.net/bugs/320615
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to