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 301074 - Incorrect pointer dereferences in xmlregexp.c and xmlschemas.c
Incorrect pointer dereferences in xmlregexp.c and xmlschemas.c
Status: VERIFIED FIXED
Product: libxml2
Classification: Platform
Component: general
2.6.19
Other All
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2005-04-18 15:17 UTC by andriy
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description andriy 2005-04-18 15:17:31 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).
Comment 1 kbuchcik 2005-04-19 15:04:20 UTC
Fixed in CVS. xmlschemas.c (1.132) and xmlregexp.c (1.45).

Thanks for pointing this out!
Comment 2 Daniel Veillard 2005-09-05 08:58:58 UTC
This should be closed by release of libxml2-2.6.21,

  thanks,

Daniel