diff --git a/src/corelib/plugin/qelfparser_p.cpp b/src/corelib/plugin/qelfparser_p.cpp index 62555b006d..159a324c6b 100644 --- a/src/corelib/plugin/qelfparser_p.cpp +++ b/src/corelib/plugin/qelfparser_p.cpp @@ -224,7 +224,7 @@ int QElfParser::parse(const char *dataStart, ulong fdlen, const QString &library return Corrupt; } *pos = sh.offset; - *sectionlen = sh.size - 1; + *sectionlen = sh.size; if (shnam[1] == 'q') return QtMetaDataSection; }