We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fbf108f + b932eb8 commit b73dbc1Copy full SHA for b73dbc1
.gitignore
@@ -32,3 +32,7 @@ Makefile
32
/tests/libbig-dynstr.debug
33
/tests/contiguous-note-sections
34
/tests/simple-pie
35
+
36
+.direnv/
37
+.vscode/
38
+.idea/
src/patchelf.cc
@@ -1237,7 +1237,7 @@ template<ElfFileParams>
1237
std::string ElfFile<ElfFileParamNames>::getInterpreter()
1238
{
1239
auto shdr = findSection(".interp");
1240
- return std::string((char *) fileContents->data() + rdi(shdr.sh_offset), rdi(shdr.sh_size));
+ return std::string((char *) fileContents->data() + rdi(shdr.sh_offset), rdi(shdr.sh_size) - 1);
1241
}
1242
1243
template<ElfFileParams>
0 commit comments