Also add ICHECK() calls to p_armpe.cpp.
This commit is contained in:
parent
8ba8317eea
commit
8ad9d21db3
@ -1045,6 +1045,7 @@ void PackArmPe::rebuildImports(upx_byte *& extrainfo)
|
||||
for (p = idata; get_le32(p) != 0; ++p)
|
||||
{
|
||||
const upx_byte *dname = get_le32(p) + import;
|
||||
ICHECK(dname, 1);
|
||||
const unsigned dlen = strlen(dname);
|
||||
ICHECK(dname, dlen + 1);
|
||||
|
||||
@ -1070,6 +1071,7 @@ void PackArmPe::rebuildImports(upx_byte *& extrainfo)
|
||||
{
|
||||
// restore the name of the dll
|
||||
const upx_byte *dname = get_le32(p) + import;
|
||||
ICHECK(dname, 1);
|
||||
const unsigned dlen = strlen(dname);
|
||||
ICHECK(dname, dlen + 1);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user