mirror of
https://github.com/upx/upx
synced 2025-09-28 19:06:07 +08:00
Merge branch 'Mattiwatti-offset-to-rva-fix' into devel
https://github.com/upx/upx/pull/193
This commit is contained in:
commit
99f52c60ed
|
@ -1111,9 +1111,9 @@ void PeFile::Export::convert(unsigned eoffs,unsigned esize)
|
|||
size = sizeof(export_dir_t);
|
||||
iv.add(eoffs,size);
|
||||
|
||||
if (getsize() <= (unsigned)edir.name) {
|
||||
if (eoffs + esize <= (unsigned)edir.name) {
|
||||
char msg[50]; snprintf(msg, sizeof(msg),
|
||||
"bad export directory name offset %#x", (unsigned)edir.name);
|
||||
"bad export directory name RVA %#x", (unsigned)edir.name);
|
||||
throwInternalError(msg);
|
||||
}
|
||||
unsigned len = strlen(base + edir.name) + 1;
|
||||
|
|
Loading…
Reference in New Issue
Block a user