GNOME Bugzilla – Bug 301074
Incorrect pointer dereferences in xmlregexp.c and xmlschemas.c
Last modified: 2009-08-15 18:40:50 UTC
GCC complains (rightly so) on five dereferences that are incorrectly (unnecessarily) coded in the two files named in the summary. (1) xmlschemas.cc - around lines 1839 and 1847 Description: in both lines, the code says: *end++; The asterisk is unnecessary, and causes a temporary to be created and discarded. The intention seems to have been to just increment end, so it should read: ++end; (2) xmlregexp.c Description: same phenomenon, around lines 2638, 2644 and 2646. Here, the dereferences should be removed on *valStr++; and *expStr++; and *valStr+; (again).
Fixed in CVS. xmlschemas.c (1.132) and xmlregexp.c (1.45). Thanks for pointing this out!
This should be closed by release of libxml2-2.6.21, thanks, Daniel