]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/qte/qte-2.3.10/increase-qxml-robustness.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / qte / qte-2.3.10 / increase-qxml-robustness.patch
1
2 #
3 # Patch managed by http://www.holgerschurig.de/patcher.html
4 #
5
6 --- qt-2.3.10/src/xml/qxml.cpp~xml
7 +++ qt-2.3.10/src/xml/qxml.cpp
8 @@ -809,6 +809,9 @@
9  // ### The input source should not do the encoding detection!
10  void QXmlInputSource::readInput( QByteArray& rawData )
11  {
12 +    // avoid crash if the array has less than 5 characters (skyhusker@handhelds.org)
13 +    if ( rawData.size() < 6 )
14 +        return;
15      QBuffer buf( rawData );
16      buf.open( IO_ReadOnly );
17      QTextStream *stream = new QTextStream( &buf );