r20136 by avox - #13077: fix unsafe usage of QByteArray

scribus-commit scribus-commit at lists.scribus.net
Tue May 26 23:01:45 UTC 2015


Author: avox
Date: Tue May 26 23:01:45 2015
New Revision: 20136

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20136
Log:
#13077: fix unsafe usage of QByteArray

Modified:
    trunk/Scribus/scribus/pdflib_core.cpp

Modified: trunk/Scribus/scribus/pdflib_core.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20136&path=/trunk/Scribus/scribus/pdflib_core.cpp
==============================================================================
--- trunk/Scribus/scribus/pdflib_core.cpp (original)
+++ trunk/Scribus/scribus/pdflib_core.cpp Tue May 26 23:01:45 2015
@@ -1762,9 +1762,9 @@
 //	PDF_WriteFontDescriptor(fontName, face, fformat, 0);
 //	// END
 	
-	QByteArray font;
-	face.RawData(font);
-	font = sfnt::getTable(font, "CFF ");
+	QByteArray font, data;
+	face.RawData(data);
+	font = sfnt::getTable(data, "CFF ");
 	dumpFont(face.psName() + ".cff", font);
 	QList<ScFace::gid_type> glyphs = RealGlyphs.uniqueKeys();
 	glyphs.removeAll(0);




More information about the scribus-commit mailing list