[Append to previous commit message.]

https://github.com/upx/upx/issues/286
	modified:   p_vmlinx.cpp
This commit is contained in:
John Reiser 2019-07-21 10:51:59 -07:00
parent 58b122d97d
commit 6a53c0b3d4

View File

@ -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];