After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 667485 - gdk_rgba_parse error checking
gdk_rgba_parse error checking
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Backend: X11
unspecified
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2012-01-08 03:37 UTC by Morten Welinder
Modified: 2012-01-09 05:57 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Morten Welinder 2012-01-08 03:37:19 UTC
It looks to me as-if gdk_rgba_parse doesn't do much of the error checking
that it promises.

"rgb(,,)" is black.
"rgb(%,%,%)" is black.
"rgb(nan,nan,nan)" is just weird.
"rgb(inf,inf,inf)" is white.  One would argue that is ok.
"rgb(1p12,0,0)" is red, I think.
"rgb(100%,5d1%,5d1%)" is pink on win32.
"rgb(0,0,0)moo" is black.

(From reading the code; apologies is one or two items are inaccurate.)