Bug 104219

Summary: rgb888amsb will scribble on memory
Product: [Retired] Red Hat Linux Reporter: Pete Nishimoto <peter.nishimoto>
Component: gdk-pixbufAssignee: Owen Taylor <otaylor>
Status: CLOSED RAWHIDE QA Contact: Brian Brock <bbrock>
Severity: high Docs Contact:
Priority: medium    
Version: 9   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-09-11 12:44:37 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Pete Nishimoto 2003-09-11 12:30:23 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)

Description of problem:
When copying source pixels (srow) to the out pixels (orow), if
the architecture is G_LITTLE_ENDIAN, the code erroneously increments
the out pixel buffer (orow) as if it was a byte array (guint8) rather 
than as it really is (which is a guint32).  The reason why is
a coding bug at the out pixel buffer incrementation -- the
sense of the #ifdef should be "#ifndef LITTLE" and not "#ifdef LITTLE"


Version-Release number of selected component (if applicable):
gtk+-2.2.1

How reproducible:
Always

Steps to Reproduce:
1.frame buffer must be TRUE_COLOR and have red_mask == 0xff0000
2.run /usr/bin/gnome-theme-manager.  .
3.
    

Actual Results:  gnome-theme-manager will core with the following message:

(gnome-theme-manager:2530): GLib-GObject-CRITICAL **: file gobject.c: line 
615   (g_object_new): assertion `G_TYPE_IS_OBJECT (object_type)' failed

This is because the object node has been corrupted

Expected Results:  no core would have been nice.

Additional info:

Comment 1 Owen Taylor 2003-09-11 12:44:37 UTC
You don't actually say *what* code is doing this, but 
assuming you been gdkpixbuf-drawable.c, this should be
fixed as of GTK+-2.2.2. See:

 http://bugzilla.gnome.org/show_bug.cgi?id=71597