I use Qt 3.3.2, gcc 3.3.3. I wrote simple xml parsing test.
#include <qxml.h>
int main( int argc, char** argv)
{
input.setData(s);
if (!reader.parse(&input, FALSE))
return 1;
return 0;
}
#include <qxml.h>
int main( int argc, char** argv)
{
QString s = "<xml></xml>";
QXmlInputSource input;
input.setData(s);
QXmlSimpleReader reader;
if (!reader.parse(&input, FALSE))
return 1;
return 0;
}
To copy to clipboard, switch view to plain text mode
If to compile this test and run under valgrind the following warning will be shown:
==10134== Conditional jump or move depends on uninitialised value(s)
==10134== at 0x446B9CE: QXmlSimpleReader:arseElement() (in /usr/local/qt-3.3.2-3.3.3/lib/libqt-mt.so.3.3.2)
==10134== by 0x446B200: QXmlSimpleReader:arseBeginOrContinue(int, bool) (in /usr/local/qt-3.3.2-3.3.3/lib/libqt-mt.so.3.3.2)
==10134== by 0x446AEE1: QXmlSimpleReader:arse(QXmlInputSource const*, bool) (in /usr/local/qt-3.3.2-3.3.3/lib/libqt-mt.so.3.3.2)
==10134== by 0x8048D52: main (main.cpp:<this line number points to reader.parse(..) string)
Is it Qt bug and how to avoid it?
Thanks,
Vitaly
Bookmarks