1
0
mirror of https://github.com/upx/upx synced 2025-09-28 19:06:07 +08:00

Make PE load config directory address dword aligned

This commit is contained in:
Mattiwatti 2020-01-21 16:03:40 +01:00 committed by Markus F.X.J. Oberhumer
parent 6a85bab5da
commit 89d0fda9fa

View File

@ -2431,7 +2431,7 @@ void PeFile::pack0(OutputFile *fo, ht &ih, ht &oh,
processTls(&rel,&tlsiv,ic);
ODADDR(PEDIR_TLS) = sotls ? ic : 0;
ODSIZE(PEDIR_TLS) = sotls ? (sizeof(LEXX) == 4 ? 0x18 : 0x28) : 0;
ic += sotls;
ic = ALIGN_UP(ic + sotls, 4u);
processLoadConf(&rel, &loadconfiv, ic);
ODADDR(PEDIR_LOADCONF) = soloadconf ? ic : 0;