Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 145939 - media-libs/giflib - giffix produces invalid pointer [patch]
Summary: media-libs/giflib - giffix produces invalid pointer [patch]
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-01 20:16 UTC by Benny Pedersen
Modified: 2010-11-10 01:23 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
brokken.gif (brokken.gif,51.43 KB, text/plain)
2006-09-01 20:22 UTC, Benny Pedersen
Details
emerge_info.log (emerge_info.log,2.92 KB, text/plain)
2006-09-01 20:34 UTC, Benny Pedersen
Details
giftext-segfault.patch (giftext-segfault.patch,828 bytes, text/plain)
2006-09-01 20:39 UTC, Benny Pedersen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Benny Pedersen 2006-09-01 20:16:20 UTC
None
Comment 1 Benny Pedersen 2006-09-01 20:22:42 UTC
Created attachment 95701 [details]
brokken.gif

the brokken image for test, sorry if its spam :-(
Comment 2 Benny Pedersen 2006-09-01 20:34:48 UTC
Created attachment 95702 [details]
emerge_info.log

trying one more thime with emerge info
Comment 3 Bo Ørsted Andresen (RETIRED) gentoo-dev 2006-09-01 20:38:56 UTC
As Benny isn't very good at posting bugs here comes the error:

$ giffix brokken.gif > new.gif
*** glibc detected *** giffix: free(): invalid pointer: 0x08060ea8 ***
======= Backtrace: =========
/lib/libc.so.6[0xb7d02d60]
/lib/libc.so.6(__libc_free+0x84)[0xb7d043a4]
/usr/lib/libgif.so.4(FreeMapObject+0x31)[0xb7eda7f1]
/usr/lib/libgif.so.4(FreeSavedImages+0x70)[0xb7edaf00]
/usr/lib/libgif.so.4(DGifCloseFile+0x108)[0xb7ed7bc8]
giffix[0x8048e17]
/lib/libc.so.6(__libc_start_main+0xd8)[0xb7cb5878]
giffix[0x8048a31]
======= Memory map: ========
08048000-0804b000 r-xp 00000000 fe:00 118996     /usr/bin/giffix
0804b000-0804c000 rw-p 00002000 fe:00 118996     /usr/bin/giffix
0804c000-0806d000 rw-p 0804c000 00:00 0          [heap]
b7b00000-b7b21000 rw-p b7b00000 00:00 0
b7b21000-b7c00000 ---p b7b21000 00:00 0
b7c53000-b7c5d000 r-xp 00000000 fe:00 189238     /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/libgcc_s.so.1
b7c5d000-b7c5e000 rw-p 00009000 fe:00 189238     /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/libgcc_s.so.1
b7c7f000-b7ca0000 rw-p b7c7f000 00:00 0
b7ca0000-b7db7000 r-xp 00000000 03:03 79106      /lib/libc-2.4.so
b7db7000-b7db9000 r--p 00116000 03:03 79106      /lib/libc-2.4.so
b7db9000-b7dbb000 rw-p 00118000 03:03 79106      /lib/libc-2.4.so
b7dbb000-b7dbe000 rw-p b7dbb000 00:00 0
b7dbe000-b7dc0000 r-xp 00000000 03:03 79097      /lib/libdl-2.4.so
b7dc0000-b7dc2000 rw-p 00001000 03:03 79097      /lib/libdl-2.4.so
b7dc2000-b7dc6000 r-xp 00000000 fe:00 66317      /usr/lib/libXdmcp.so.6.0.0
b7dc6000-b7dc7000 rw-p 00003000 fe:00 66317      /usr/lib/libXdmcp.so.6.0.0
b7dc7000-b7dc9000 r-xp 00000000 fe:00 77655      /usr/lib/libXau.so.6.0.0
b7dc9000-b7dca000 rw-p 00001000 fe:00 77655      /usr/lib/libXau.so.6.0.0
b7dca000-b7dcb000 rw-p b7dca000 00:00 0
b7dcb000-b7eb1000 r-xp 00000000 fe:00 66337      /usr/lib/libX11.so.6.2.0
b7eb1000-b7eb5000 rw-p 000e6000 fe:00 66337      /usr/lib/libX11.so.6.2.0
b7eb5000-b7ec9000 r-xp 00000000 fe:00 29611      /usr/lib/libICE.so.6.3.0
b7ec9000-b7eca000 rw-p 00013000 fe:00 29611      /usr/lib/libICE.so.6.3.0
b7eca000-b7ecc000 rw-p b7eca000 00:00 0
b7ecc000-b7ed4000 r-xp 00000000 fe:00 67307      /usr/lib/libSM.so.6.0.0
b7ed4000-b7ed5000 rw-p 00007000 fe:00 67307      /usr/lib/libSM.so.6.0.0
b7ed5000-b7edc000 r-xp 00000000 fe:00 119020     /usr/lib/libgif.so.4.1.4
b7edc000-b7edd000 rw-p 00007000 fe:00 119020     /usr/lib/libgif.so.4.1.4
b7ede000-b7eff000 rw-p b7ede000 00:00 0
b7eff000-b7f19000 r-xp 00000000 03:03 79103      /lib/ld-2.4.so
b7f19000-b7f1a000 r--p 00019000 03:03 79103      /lib/ld-2.4.so
b7f1a000-b7f1b000 rw-p 0001a000 03:03 79103      /lib/ld-2.4.so
bfe7b000-bfe91000 rw-p bfe7b000 00:00 0          [stack]
ffffe000-fffff000 ---p 00000000 00:00 0          [vdso]
Aborted

# emerge --info
Portage 2.1.1_rc1-r2 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3, 2.6.17-suspend2-r4 i686)
=================================================================
System uname: 2.6.17-suspend2-r4 i686 Intel(R) Pentium(R) M processor 1600MHz
Gentoo Base System version 1.12.4
Last Sync: Fri, 01 Sep 2006 23:31:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -Os -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=pentium-m -Os -pipe"
DISTDIR="/opt/distfiles"
FEATURES="autoconfig buildpkg collision-protect distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms splitdebug strict userfetch"
GENTOO_MIRRORS="http://mirror.uni-c.dk/pub/gentoo http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo"
LC_ALL="en_GB.utf8"
LINGUAS="da en en_GB"
MAKEOPTS="-j2"
PKGDIR="/opt/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=60"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://zlin.dk/gentoo-portage"
USE="x86 X aac acpi alsa asf avi bash-completion berkdb bitmap-fonts bluetooth bzip2 cairo cdr cli crypt css cups dlloader dri dvd dvdr elibc_glibc emboss encode fam fat fbcon ffmpeg firefox flac fortran gdbm gif gphoto2 gpm i8x0 ieee1394 imagemagick initng_plugins_also initng_plugins_bash_launcher initng_plugins_chdir initng_plugins_chroot initng_plugins_conflict initng_plugins_cpout initng_plugins_critical initng_plugins_cron initng_plugins_ctrlaltdel initng_plugins_daemon initng_plugins_dev initng_plugins_dllaunch initng_plugins_envparser initng_plugins_find initng_plugins_fstat initng_plugins_history initng_plugins_idleprobe initng_plugins_initctl initng_plugins_interactive initng_plugins_iparser initng_plugins_last initng_plugins_limit initng_plugins_logfile initng_plugins_netprobe initng_plugins_ngc4 initng_plugins_pause initng_plugins_pidfile initng_plugins_provide initng_plugins_reload initng_plugins_renice initng_plugins_rlparser initng_plugins_simple_launcher initng_plugins_stcmd initng_plugins_stdout initng_plugins_suid initng_plugins_syncron initng_plugins_syslog initng_plugins_unneeded input_devices_evdev input_devices_keyboard input_devices_mouse input_devices_synaptics input_devices_void irda irmc isdnlog jfs jpeg kde kdehiddenvisibility kernel_linux libg++ linguas_da linguas_en linguas_en_GB logitech-mouse mad mikmod mmx mmxext mp3 mpeg mplayer ncurses nls nptl nptlonly nsplugin ntfs ogg opengl pam pcre pdf pdflib perl png ppds pppd python qt qt3 quicktime readline real reflection reiser4 reiserfs scanner sdl session slp spell spl sse sse2 ssl subversion svg svga syslog tcpd tetex tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU vcd video_cards_fbdev video_cards_i810 video_cards_radeon video_cards_vesa vorbis wifi win32codecs xcomposite xfs xine xml xorg xscreensaver xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS
Comment 4 Benny Pedersen 2006-09-01 20:39:49 UTC
Created attachment 95703 [details]
giftext-segfault.patch


maybe related patch needed ?
Comment 5 Adrian 2006-11-16 12:23:02 UTC
It would be nice if this patch was merged since the segfault occurs quite often with spam images scanned by SpamAssassin+FuzzyOCR.
Comment 6 Tom Knight (RETIRED) gentoo-dev 2006-12-04 13:32:02 UTC
From what I can see this isn't the same thing as the giftext problem and hence that patch won't work.

I've tried a gif that causes giftext to segfault with giffix without any segfaults and the same goes for brokken.gif which doesn't cause giftext to segfault.
Comment 7 Benny Pedersen 2008-04-11 10:01:52 UTC
is this bug still needed to fix ?
Comment 8 Benny Pedersen 2009-08-25 17:18:01 UTC
is this bug still a bug ?
Comment 9 Benny Pedersen 2010-11-10 01:23:38 UTC
i will close this bug now, if its still problem then reopen