[Append to previous commit message.]
https://github.com/upx/upx/issues/286 modified: p_vmlinx.cpp
This commit is contained in:
parent
58b122d97d
commit
6a53c0b3d4
@ -115,7 +115,7 @@ typename T::Shdr const *PackVmlinuxBase<T>::getElfSections()
|
||||
&& p->sh_size <= ((unsigned long)file_size - p->sh_offset)
|
||||
&& p->sh_name < (unsigned long)file_size
|
||||
&& 10 <= ((unsigned long)file_size - p->sh_name)
|
||||
// 10 == (1+ strlen(".shstrtab"))
|
||||
// 10 == (1+ strlen(".shstrtab"))
|
||||
) {
|
||||
delete [] shstrtab;
|
||||
shstrtab = new char[1+ p->sh_size];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user