Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const XMLCh *DOMNormalizer::integerToXMLCh(unsigned int i) const
- {
- XMLCh *buf = (XMLCh*)
- fMemoryManager->allocate(15 * sizeof(XMLCh));
- XMLCh *pos = buf + sizeof(buf) - sizeof(XMLCh);
- ....
- }
- This suspicious code was found in Xerces project by PVS-Studio static code analyzer.
- Warning message is:
- V620 It's unusual that the expression of sizeof(T) kind is being subtracted from the pointer to T type. domnormalizer.cpp 277
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment