Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 366313 - x11-libs/gdk-pixbuf-2.22.1: tga image with invalid headers aren't handled correctly
Summary: x11-libs/gdk-pixbuf-2.22.1: tga image with invalid headers aren't handled cor...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: https://bugzilla.gnome.org/show_bug.c...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-07 07:09 UTC by Samuel Bauer
Modified: 2016-01-05 23:48 UTC (History)
0 users

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


Attachments
visual of the "bug" (crack-attack.png,27.02 KB, image/png)
2011-05-07 07:09 UTC, Samuel Bauer
Details
Code to test gdk-pixbuf (gdk-pixbuf-test.c,426 bytes, text/x-csrc)
2011-05-09 15:49 UTC, Samuel Bauer
Details
Image from the game crack attack (preview_normal.tga,256.04 KB, image/x-tga)
2011-05-26 09:14 UTC, Samuel Bauer
Details
Icon of the game pacmanarena (pacmanarena.tga,192.04 KB, image/x-tga)
2011-05-26 09:15 UTC, Samuel Bauer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Samuel Bauer 2011-05-07 07:09:32 UTC
Created attachment 272351 [details]
visual of the "bug"

The crack-attack ebuild contains some tga files with broken headers.

/usr/share/games/crack-attack/preview_extremely_reduced.tga
/usr/share/games/crack-attack/preview_normal.tga
/usr/share/games/crack-attack/preview_reduced.tga

Thus those files cannot be correctly handled by the gtk+, glib libraries.

I tried to watch them with one gtk+ based image viewer (gpicview).

The output is: Icon has zero width

Therefore the image is correctly handled by imagemagick convert (and display) it to png works like a charm.

As one can see it's just an issue with incorrect tga header

I noticed this after upgrading to the last gentoo stable glib version(2.28.6), however I have no idea if it's related to this because it's really long time I didn't launch a party for crack-attack. (And I think I already seen that those images were not displaying, but didn't really paid attention)
Comment 1 Samuel Bauer 2011-05-09 15:12:07 UTC
As the file /usr/share/pixmaps/pacmanarena.tga is also affected, I don't think the assignee should be the Gentoo Games Team.

The problem is coming from gtk+/glib
Comment 2 Samuel Bauer 2011-05-09 15:49:57 UTC
Created attachment 272623 [details]
Code to test gdk-pixbuf

The problem comes from gdk-pixbuf (libpixbufloader-tga.so)
I assume this misbehavior should be relayed upstream

This little test shows that the mentioned files are incorrectly handled
Comment 3 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2011-05-09 16:11:23 UTC
Please post your emerge --info, and test with the latest gdk-pixbuf. Thanks.
Comment 4 Samuel Bauer 2011-05-09 16:21:02 UTC
Portage 2.1.9.42 (default/linux/amd64/10.0/desktop, gcc-4.4.5, libc-0-r0, 2.6.37-gentoo-r4-nouveau x86_64)
=================================================================
System uname: Linux-2.6.37-gentoo-r4-nouveau-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T5250_@_1.50GHz-with-gentoo-2.0.2
Timestamp of tree: Mon, 09 May 2011 07:00:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.7.1-r1, 3.1.3-r1
dev-util/ccache:     2.4-r9
dev-util/cmake:      2.8.4-r1
sys-apps/baselayout: 2.0.2
sys-apps/openrc:     0.8.2-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.5
sys-devel/gcc-config: 1.4.1-r1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
sys-kernel/linux-headers: 2.6.36.1
sys-libs/glibc:      2.11.3
virtual/os-headers:  0
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--misspell-suggestions=n"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv"
FFLAGS=""
GENTOO_MIRRORS="ftp://mirror.its.uidaho.edu/gentoo/ http://mirror.its.uidaho.edu/pub/gentoo/ ftp://mirrors.telepoint.bg/gentoo/"
LANG="fr_FR.UTF-8"
LC_ALL="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="fr fr_FR"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/excludes"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/gentoo/overlay/sunrise /usr/gentoo/overlay/roslin /usr/gentoo/overlay/desktop-effects /usr/gentoo/overlay/funroll-loops /usr/gentoo/overlay/various /usr/gentoo/overlay/sam"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 amr apache2 audiofile audit bash-completion berkdb bidi branding bzip2 cairo caps cddb cdr cli consolekit cracklib crypt cscope cups curl cxx dbus dga directfb dri dts dvd dvdr dvdread emboss encode exif fam fbcon ffmpeg fftw firefox flac fortran fuse gallium gdbm gdu gif gimp gmp gnutls gphoto2 gpm gtk gtk2 hardened iconv icu id3 id3tag imlib ipv6 jack java joystick jpeg jpeg2k kerberos ladspa lcms ldap lzo mad mikmod mmx mmxext mng modules mozilla mp3 mp4 mpeg mpi mudflap multilib ncurses nls nptl nptlonly ogg oggvorbis openal openexr opengl openmp openvg oss pam pango pcre pdf perl php png pnm policykit ppds pppd python qt3support readline romio rtc ruby samba sasl sdl session slang smp sockets spell sse sse2 sse3 ssl ssse3 startup-notification svg sysfs syslog tcl tcpd tga theora threads tiff tk truetype udev unicode urandom usb v4l v4l2 vaapi vdpau vhosts vim-syntax vorbis wma wmf x264 xattr xcb xcomposite xml xorg xpm xrandr xulrunner xv xvid xvmc zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev joystick keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr fr_FR" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nouveau nvidia fbdev vesa none v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 5 Gilles Dartiguelongue (RETIRED) gentoo-dev 2011-05-09 21:02:36 UTC
If you could add the gnome overlay and give a shot at gdk-pixbuf-2.23.3, that would help.
Comment 6 Samuel Bauer 2011-05-11 09:56:36 UTC
(In reply to comment #5)
> If you could add the gnome overlay and give a shot at gdk-pixbuf-2.23.3, that
> would help.

Is it related with darkside last question, if so, no need to test from overlay, it was due to a initial mistake I made in the bug naming, and we already spoke about this on the gentoo-bugs channel.

If this is not related, I'm on the regret to inform you that I will not install the overlay, as it is already a pain to maintain a desktop without gnome or kde.

Especially for gnome, when a few ebuilds use gtk flag as gnome one, or the opposite.
Comment 7 Gilles Dartiguelongue (RETIRED) gentoo-dev 2011-05-11 10:17:32 UTC
There is no way we can help a user not willing to do some tests.
Comment 8 Samuel Bauer 2011-05-26 07:40:21 UTC
Latest gdk-pixbuf in portage tree is 2.22.1

If someone can test with gdk-pixbuf from the gnome-overlay.
Comment 9 Samuel Bauer 2011-05-26 09:14:10 UTC
Created attachment 274671 [details]
Image from the game crack attack
Comment 10 Samuel Bauer 2011-05-26 09:15:29 UTC
Created attachment 274675 [details]
Icon of the game pacmanarena
Comment 11 Pacho Ramos gentoo-dev 2011-05-26 11:14:17 UTC
Please report this directly to upstream and post the link here: bugzilla.gnome.org
Comment 12 Samuel Bauer 2015-02-06 00:44:52 UTC
https://bugzilla.gnome.org/show_bug.cgi?id=651155
Comment 13 Gilles Dartiguelongue (RETIRED) gentoo-dev 2016-01-05 23:48:59 UTC
reporter sent me an update on December 24th, saying the issue is fixed for him with gdk-pixbuf in gentoo. This fix seems to have landed in 2.30+ releases.
Pictures display fine for me too with 2.32.*. Setting "fixed".