diff --git a/src/p_vmlinx.cpp b/src/p_vmlinx.cpp index 65c16c84..3fc26bbe 100644 --- a/src/p_vmlinx.cpp +++ b/src/p_vmlinx.cpp @@ -577,6 +577,7 @@ int PackVmlinuxBase::canUnpack() Shdr *p; for (p= shdri, j= ehdri.e_shnum; --j>=0; ++p) { if ((unsigned)file_size < (p->sh_size + p->sh_offset) + || (5+ p->sh_name) < p->sh_name // wrap: ignore malformed || shstrsec->sh_size < (5+ p->sh_name) ) { continue; }