From 28f02967abbf61c832bd5713ee7c055e2c73eb19 Mon Sep 17 00:00:00 2001 From: Marcin Juszkiewicz Date: Fri, 21 Apr 2006 10:30:08 +0000 Subject: added qt/e 2.3.12 as non-default, WIP --- packages/qte/qte-2.3.12/increase-qxml-robustness.patch | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 packages/qte/qte-2.3.12/increase-qxml-robustness.patch (limited to 'packages/qte/qte-2.3.12/increase-qxml-robustness.patch') diff --git a/packages/qte/qte-2.3.12/increase-qxml-robustness.patch b/packages/qte/qte-2.3.12/increase-qxml-robustness.patch new file mode 100644 index 0000000000..3a29b4ab03 --- /dev/null +++ b/packages/qte/qte-2.3.12/increase-qxml-robustness.patch @@ -0,0 +1,17 @@ + +# +# Patch managed by http://www.holgerschurig.de/patcher.html +# + +--- qt-2.3.10/src/xml/qxml.cpp~xml ++++ qt-2.3.10/src/xml/qxml.cpp +@@ -809,6 +809,9 @@ + // ### The input source should not do the encoding detection! + void QXmlInputSource::readInput( QByteArray& rawData ) + { ++ // avoid crash if the array has less than 5 characters (skyhusker@handhelds.org) ++ if ( rawData.size() < 6 ) ++ return; + QBuffer buf( rawData ); + buf.open( IO_ReadOnly ); + QTextStream *stream = new QTextStream( &buf ); -- cgit 1.2.3-korg