diff --git a/src/corelib/plugin/qelfparser_p.cpp b/src/corelib/plugin/qelfparser_p.cpp index 70abbaf6e1..af2fc44d00 100644 --- a/src/corelib/plugin/qelfparser_p.cpp +++ b/src/corelib/plugin/qelfparser_p.cpp @@ -61,8 +61,8 @@ const char *QElfParser::parseSectionHeader(const char *data, ElfSectionHeader *s + sizeof(qelfaddr_t); // sh_addr sh->offset = read(data); data += sizeof(qelfoff_t); // sh_offset - sh->size = read(data); - data += sizeof(qelfword_t); // sh_size + sh->size = read(data); + data += sizeof(qelfoff_t); // sh_size return data; } diff --git a/src/corelib/plugin/qelfparser_p.h b/src/corelib/plugin/qelfparser_p.h index afd8112138..4ae0ed14db 100644 --- a/src/corelib/plugin/qelfparser_p.h +++ b/src/corelib/plugin/qelfparser_p.h @@ -80,7 +80,7 @@ public: qelfword_t name; qelfword_t type; qelfoff_t offset; - qelfword_t size; + qelfoff_t size; }; int m_endian;