Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
None
-
Some future release
-
Ubuntu 18.04 LTS 64 bit
gcc 7.3.0
clang 6.0
Description
- Build the attached demo project on a Qt version built with "-sanitize address":
#include <QFile> #include <QTextDocument> int main(int argc, char *argv[]) { QFile f(argv[1]); f.open(QFile::ReadOnly); QTextDocument().setMarkdown(f.readAll()); return 0; }
Of course, this requires https://codereview.qt-project.org/214843/.
- Run it passing the filename of the attached malformed file as first parameter.
The program crashes and writes command line output about the overflow.
Attachments
Issue Links
- relates to
-
QTBUG-73938 fuzzing failure in md4c / QTextMarkdownImporter
- Closed