GNOME Bugzilla – Bug 375194
Access violation parsing some border styles
Last modified: 2006-11-14 17:14:45 UTC
Access violation in cr_rgb_set_from_name parsing the following rule .HPBottomBorders { border-bottom:SOLID 1px #ff9900; border-top:SOLID 1px #ff9900; } It's running off the end of an array on this line: for (i = 0; i < sizeof (gv_standard_colors); i++) { I think this line should read: for (i = 0; i < sizeof(gv_standard_colors)/sizeof(gv_standard_colors[0]); i++) { Similarly if (i < sizeof (gv_standard_colors)) should read: if (i < sizeof (gv_standard_colors)/sizeof(gv_standard_colors[0]))
Thanks for the bug report. I applied a similar patch to the one you suggested.