Index: source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp =================================================================== --- source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp +++ source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp @@ -505,7 +505,10 @@ return false; } - sect_name = sect.name; + + // The section name has a max length of 8 characters, but isn't + // necessarily null-terminated + sect_name = std::string(sect.name, sizeof(sect.name)); return true; }