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 680370 - relaxng.c pointer size assumption
relaxng.c pointer size assumption
Status: RESOLVED DUPLICATE of bug 788312
Product: libxml2
Classification: Platform
Component: relaxng
git master
Other All
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2012-07-21 12:26 UTC by milasudril
Modified: 2019-01-30 11:07 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description milasudril 2012-07-21 12:26:49 UTC
in xmlRelaxNGComputeInterleaves there are several bad casts that may break the code:

Do not assume sizeof(void*)==sizeof(long)

For example MinGW64 you should cast to long long.

Also the first cast is not needed sizeof(int)<=sizeof(void*) so this should do fine

(void*)(i + 1)

But why that code any way. i is a counter and why cast next value into a pointer? That does not make any sense.
Comment 1 Nick Wellnhofer 2019-01-30 11:07:53 UTC

*** This bug has been marked as a duplicate of bug 788312 ***