Linux EINVAL for zero-length mmap: mmap(, 0, ,,,)
https://github.com/upx/upx/issues/681 modified: stub/src/amd64-linux.elf-main.c modified: stub/src/i386-linux.elf-main.c modified: stub/src/i386-bsd.elf-main.c modified: stub/src/i386-openbsd.elf-main.c modified: ../misc/testsuite/upx_testsuite_1-expected_sha256sums.sh modified: stub/amd64-linux.elf-fold.h modified: stub/arm64-linux.elf-fold.h modified: stub/i386-bsd.elf-fold.h modified: stub/i386-linux.elf-fold.h modified: stub/i386-netbsd.elf-fold.h modified: stub/i386-openbsd.elf-fold.h modified: stub/mips.r3000-linux.elf-fold.h modified: stub/mipsel.r3000-linux.elf-fold.h modified: stub/powerpc-linux.elf-fold.h modified: stub/powerpc64-linux.elf-fold.h modified: stub/powerpc64le-linux.elf-fold.h modified: stub/tmp/amd64-linux.elf-fold.map modified: stub/tmp/arm64-linux.elf-fold.map modified: stub/tmp/i386-bsd.elf-fold.map modified: stub/tmp/i386-linux.elf-fold.map modified: stub/tmp/i386-netbsd.elf-fold.map modified: stub/tmp/i386-openbsd.elf-fold.map modified: stub/tmp/mips.r3000-linux.elf-fold.map modified: stub/tmp/mipsel.r3000-linux.elf-fold.map modified: stub/tmp/powerpc-linux.elf-fold.map modified: stub/tmp/powerpc64-linux.elf-fold.map modified: stub/tmp/powerpc64le-linux.elf-fold.map
This commit is contained in:
committed by
Markus F.X.J. Oberhumer
parent
c429859cbf
commit
12c36bab6c
@@ -1,5 +1,5 @@
|
||||
/* i386-linux.elf-fold.h
|
||||
created from i386-linux.elf-fold.bin, 2019 (0x7e3) bytes
|
||||
created from i386-linux.elf-fold.bin, 2029 (0x7ed) bytes
|
||||
|
||||
This file is part of the UPX executable compressor.
|
||||
|
||||
@@ -31,17 +31,17 @@
|
||||
*/
|
||||
|
||||
|
||||
#define STUB_I386_LINUX_ELF_FOLD_SIZE 2019
|
||||
#define STUB_I386_LINUX_ELF_FOLD_ADLER32 0x6b7c6cbf
|
||||
#define STUB_I386_LINUX_ELF_FOLD_CRC32 0x951ce972
|
||||
#define STUB_I386_LINUX_ELF_FOLD_SIZE 2029
|
||||
#define STUB_I386_LINUX_ELF_FOLD_ADLER32 0xbb626f1d
|
||||
#define STUB_I386_LINUX_ELF_FOLD_CRC32 0x3f05057b
|
||||
|
||||
unsigned char stub_i386_linux_elf_fold[2019] = {
|
||||
unsigned char stub_i386_linux_elf_fold[2029] = {
|
||||
/* 0x0000 */ 127, 69, 76, 70, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
/* 0x0010 */ 2, 0, 3, 0, 1, 0, 0, 0,128, 16,192, 0, 52, 0, 0, 0,
|
||||
/* 0x0020 */ 0, 0, 0, 0, 0, 0, 0, 0, 52, 0, 32, 0, 2, 0, 0, 0,
|
||||
/* 0x0030 */ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 16,192, 0,
|
||||
/* 0x0040 */ 0, 16,192, 0,227, 7, 0, 0,228, 7, 0, 0, 5, 0, 0, 0,
|
||||
/* 0x0050 */ 0, 16, 0, 0, 1, 0, 0, 0,227, 7, 0, 0, 0, 0, 0, 0,
|
||||
/* 0x0040 */ 0, 16,192, 0,237, 7, 0, 0,240, 7, 0, 0, 5, 0, 0, 0,
|
||||
/* 0x0050 */ 0, 16, 0, 0, 1, 0, 0, 0,237, 7, 0, 0, 0, 0, 0, 0,
|
||||
/* 0x0060 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
/* 0x0070 */ 0, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
/* 0x0080 */ 87, 81, 80,137,230,129,236, 0, 16, 0, 0,137,231,106, 8, 89,
|
||||
@@ -56,7 +56,7 @@ unsigned char stub_i386_linux_elf_fold[2019] = {
|
||||
/* 0x0110 */ 49,248,131,224, 4, 41,199, 90, 1,250,175,173,193,233, 2, 73,
|
||||
/* 0x0120 */ 243,165,252,141, 79, 4, 49,192, 41,225,137,231,193,233, 2,243,
|
||||
/* 0x0130 */ 171,137,252,137,215, 88, 93, 88, 94, 89,129,236, 0, 10, 0, 0,
|
||||
/* 0x0140 */ 137,226, 81,139, 24,139, 72, 4,131,193, 12, 96, 71,232,135, 5,
|
||||
/* 0x0140 */ 137,226, 81,139, 24,139, 72, 4,131,193, 12, 96, 71,232,145, 5,
|
||||
/* 0x0150 */ 0, 0, 79,137,198,139,108, 36, 32,139, 77,104,137,235,106, 91,
|
||||
/* 0x0160 */ 88,205,128,137,250,137,231,185,137, 2, 0, 0, 49,192,243,171,
|
||||
/* 0x0170 */ 137,252, 88, 89, 95, 91, 86, 81, 80, 82, 87, 41,237,106, 2, 94,
|
||||
@@ -103,64 +103,64 @@ unsigned char stub_i386_linux_elf_fold[2019] = {
|
||||
/* 0x0400 */ 0,106,255,131,207, 34, 33,195, 87, 41,222,106, 0, 41,198, 78,
|
||||
/* 0x0410 */ 33,198, 86, 83,232,189,253,255,255,131,196, 24, 1,198, 41,216,
|
||||
/* 0x0420 */ 137,117,240,137, 69,196,139,117,224,199, 69,184, 0, 0, 0, 0,
|
||||
/* 0x0430 */ 102,131,126, 44, 0, 15,132,100, 2, 0, 0,131,125,220, 0,116,
|
||||
/* 0x0430 */ 102,131,126, 44, 0, 15,132,110, 2, 0, 0,131,125,220, 0,116,
|
||||
/* 0x0440 */ 32,139, 69,200,131, 56, 6,117, 24,139, 77,196,186, 3, 0, 0,
|
||||
/* 0x0450 */ 0, 3, 72, 8,139, 69,216,232,181,254,255,255,233, 39, 2, 0,
|
||||
/* 0x0460 */ 0,139, 85,200,131, 58, 1, 15,133, 27, 2, 0, 0,131,125,220,
|
||||
/* 0x0470 */ 0,116, 65,131,122, 4, 0,117, 59,139,117,224,139, 77,196, 3,
|
||||
/* 0x0480 */ 74, 8,186, 3, 0, 0, 0, 3, 78, 28,139, 69,216,232,127,254,
|
||||
/* 0x0490 */ 255,255, 15,183, 78, 44,139, 69,216,186, 5, 0, 0, 0,232,110,
|
||||
/* 0x04a0 */ 254,255,255, 15,183, 78, 42,139, 69,216,186, 4, 0, 0, 0,232,
|
||||
/* 0x04b0 */ 93,254,255,255,139, 69,200,187, 64, 98, 81,115,139, 72, 24,131,
|
||||
/* 0x04c0 */ 225, 7,193,225, 2,211,235,139, 77,200,137,218,131,226, 7,139,
|
||||
/* 0x04d0 */ 113, 20,137, 85,180,139, 80, 16,139, 69,196, 3, 65, 8,137, 85,
|
||||
/* 0x04e0 */ 232,139, 77,204, 1,198, 33,193,137,117,176,137,198, 41,206,131,
|
||||
/* 0x04f0 */ 125,220, 0,137, 69,236,141, 60, 10,116, 58,106, 0,106,255,106,
|
||||
/* 0x0500 */ 50,141, 71, 3,106, 3, 80, 86,232,201,252,255,255,131,196, 24,
|
||||
/* 0x0510 */ 57,198, 15,133, 36, 1, 0, 0,128,227, 4,139, 69,208,117, 2,
|
||||
/* 0x0520 */ 49,192, 80,139, 69,220,255,117,228,141, 85,232,232, 0,253,255,
|
||||
/* 0x0530 */ 255, 88, 90,235, 35,139, 85,200,139, 66, 4, 41,200, 80,255,117,
|
||||
/* 0x0540 */ 228,106, 18,255,117,180, 87, 86,232,137,252,255,255,131,196, 24,
|
||||
/* 0x0550 */ 57,198, 15,133,228, 0, 0, 0,137,249,139, 69,204,247,217, 33,
|
||||
/* 0x0560 */ 193,246, 69,180, 2,137, 77,168,116, 13,133,201,141, 4, 62,116,
|
||||
/* 0x0570 */ 6,198, 0, 0, 64,226,250,131,125,220, 0, 15,132,197, 0, 0,
|
||||
/* 0x0580 */ 0,139, 85,200,199, 69,172, 0, 0, 0, 0,131, 58, 1, 15,133,
|
||||
/* 0x0590 */ 151, 0, 0, 0,246, 66, 24, 1, 15,132,141, 0, 0, 0,137,209,
|
||||
/* 0x05a0 */ 139, 82, 20,137,200,139, 73, 8,141, 28, 10, 3, 93,196, 59, 80,
|
||||
/* 0x05b0 */ 16,117, 14,137,216,247,216, 37,255, 15, 0, 0,131,248, 3,119,
|
||||
/* 0x05c0 */ 53,139, 85,200,107, 69,196, 52,131,122, 4, 0,141, 92, 1, 12,
|
||||
/* 0x05d0 */ 116, 36,106, 0,106,255,106, 34,106, 3,104, 0, 16, 0, 0,106,
|
||||
/* 0x05e0 */ 0,199, 69,172, 1, 0, 0, 0,232,233,251,255,255,131,196, 24,
|
||||
/* 0x05f0 */ 133,192,137,195,116, 53,139, 3, 61,205,128, 97,195,116, 6,199,
|
||||
/* 0x0600 */ 3,205,128, 97,195,131,125,172, 0,116, 13,106, 5,106, 4, 83,
|
||||
/* 0x0610 */ 232,153,251,255,255,131,196, 12,133,219,116, 15,139, 69,216,137,
|
||||
/* 0x0620 */ 217, 49,210,131,224,254,232,230,252,255,255,255,117,180, 87, 86,
|
||||
/* 0x0630 */ 232,121,251,255,255,131,196, 12,133,192,116, 10,106,127, 91,106,
|
||||
/* 0x0640 */ 1, 88,205,128,235,254,139, 77,168,141, 4, 15,141, 28, 6, 59,
|
||||
/* 0x0650 */ 93,176,115, 30,106, 0,106,255,106, 50,255,117,180, 41, 93,176,
|
||||
/* 0x0660 */ 255,117,176, 83,232,109,251,255,255,131,196, 24, 57,195,116, 24,
|
||||
/* 0x0670 */ 235,254,131,125,220, 0,116, 16,141, 79, 3, 35, 77,204,131,249,
|
||||
/* 0x0680 */ 3,119, 5,106, 91, 88,205,128,139,117,224,255, 69,184, 15,183,
|
||||
/* 0x0690 */ 70, 44,131, 69,200, 32, 57, 69,184, 15,140,156,253,255,255,131,
|
||||
/* 0x06a0 */ 125,220, 0,116, 18,139, 69,224,102,131,120, 16, 3,116, 8,139,
|
||||
/* 0x06b0 */ 93,240,106, 45, 88,205,128,131,125,212, 0,116, 8,139, 77,196,
|
||||
/* 0x06c0 */ 139, 85,212,137, 10,139,117,224,139,118, 24, 1,117,196,139, 69,
|
||||
/* 0x06d0 */ 196,141,101,244, 91, 94, 95,201,195, 85,137,229, 87, 86, 83,131,
|
||||
/* 0x06e0 */ 236, 32,199, 69,232, 0, 0, 0, 0,139, 69, 8,139,117, 16,137,
|
||||
/* 0x06f0 */ 69,236,128, 62,235,117, 6,141, 86, 2,137, 85,232,106, 0,139,
|
||||
/* 0x0700 */ 125, 28,141, 85, 24,139, 93, 32,141, 69, 32, 86,232, 32,251,255,
|
||||
/* 0x0710 */ 255,139, 69, 12, 41, 93, 36,137,250,141, 93,240,255,117,232,137,
|
||||
/* 0x0720 */ 69, 32,139, 69, 40, 83,255,117,236,137, 69,240,141, 69, 32,141,
|
||||
/* 0x0730 */ 79, 52, 80,137,240,137, 77,228,232,245,251,255,255,137,193,137,
|
||||
/* 0x0740 */ 69,224,139, 69,236,186, 9, 0, 0, 0,232,194,251,255,255,102,
|
||||
/* 0x0750 */ 139, 79, 44,131,196, 24, 49,210,102,133,201,116,123,139, 69,228,
|
||||
/* 0x0760 */ 131, 56, 3,117,103,139, 93,240, 49,201, 3, 88, 8,137,202,106,
|
||||
/* 0x0770 */ 5, 88,205,128,133,192,137,198,120, 21,186, 0, 2, 0, 0,137,
|
||||
/* 0x0780 */ 195,137,249,106, 3, 88,205,128, 61, 0, 2, 0, 0,116, 10,106,
|
||||
/* 0x0790 */ 127, 91,106, 1, 88,205,128,235,254,141, 69,240,137,250,106, 0,
|
||||
/* 0x07a0 */ 137,243, 80,137,240,255,117,236,106, 0,232,131,251,255,255,139,
|
||||
/* 0x07b0 */ 77,240,137, 69,224,139, 69,236,186, 7, 0, 0, 0,232, 79,251,
|
||||
/* 0x07c0 */ 255,255,131,196, 16,106, 6, 88,205,128,235, 12, 66, 15,183,193,
|
||||
/* 0x07d0 */ 131, 69,228, 32, 57,194,124,133,139, 69,224,141,101,244, 91, 94,
|
||||
/* 0x07e0 */ 95,201,195
|
||||
/* 0x0450 */ 0, 3, 72, 8,139, 69,216,232,181,254,255,255,233, 49, 2, 0,
|
||||
/* 0x0460 */ 0,139, 85,200,131, 58, 1, 15,133, 37, 2, 0, 0,131,122, 20,
|
||||
/* 0x0470 */ 0, 15,132, 27, 2, 0, 0,131,125,220, 0,116, 65,131,122, 4,
|
||||
/* 0x0480 */ 0,117, 59,139,117,224,139, 77,196, 3, 74, 8,186, 3, 0, 0,
|
||||
/* 0x0490 */ 0, 3, 78, 28,139, 69,216,232,117,254,255,255, 15,183, 78, 44,
|
||||
/* 0x04a0 */ 139, 69,216,186, 5, 0, 0, 0,232,100,254,255,255, 15,183, 78,
|
||||
/* 0x04b0 */ 42,139, 69,216,186, 4, 0, 0, 0,232, 83,254,255,255,139, 69,
|
||||
/* 0x04c0 */ 200,187, 64, 98, 81,115,139, 72, 24,131,225, 7,193,225, 2,211,
|
||||
/* 0x04d0 */ 235,139, 77,200,137,218,131,226, 7,139,113, 20,137, 85,180,139,
|
||||
/* 0x04e0 */ 80, 16,139, 69,196, 3, 65, 8,137, 85,232,139, 77,204, 1,198,
|
||||
/* 0x04f0 */ 33,193,137,117,176,137,198, 41,206,131,125,220, 0,137, 69,236,
|
||||
/* 0x0500 */ 141, 60, 10,116, 58,106, 0,106,255,106, 50,141, 71, 3,106, 3,
|
||||
/* 0x0510 */ 80, 86,232,191,252,255,255,131,196, 24, 57,198, 15,133, 36, 1,
|
||||
/* 0x0520 */ 0, 0,128,227, 4,139, 69,208,117, 2, 49,192, 80,139, 69,220,
|
||||
/* 0x0530 */ 255,117,228,141, 85,232,232,246,252,255,255, 88, 90,235, 35,139,
|
||||
/* 0x0540 */ 85,200,139, 66, 4, 41,200, 80,255,117,228,106, 18,255,117,180,
|
||||
/* 0x0550 */ 87, 86,232,127,252,255,255,131,196, 24, 57,198, 15,133,228, 0,
|
||||
/* 0x0560 */ 0, 0,137,249,139, 69,204,247,217, 33,193,246, 69,180, 2,137,
|
||||
/* 0x0570 */ 77,168,116, 13,133,201,141, 4, 62,116, 6,198, 0, 0, 64,226,
|
||||
/* 0x0580 */ 250,131,125,220, 0, 15,132,197, 0, 0, 0,139, 85,200,199, 69,
|
||||
/* 0x0590 */ 172, 0, 0, 0, 0,131, 58, 1, 15,133,151, 0, 0, 0,246, 66,
|
||||
/* 0x05a0 */ 24, 1, 15,132,141, 0, 0, 0,137,209,139, 82, 20,137,200,139,
|
||||
/* 0x05b0 */ 73, 8,141, 28, 10, 3, 93,196, 59, 80, 16,117, 14,137,216,247,
|
||||
/* 0x05c0 */ 216, 37,255, 15, 0, 0,131,248, 3,119, 53,139, 85,200,107, 69,
|
||||
/* 0x05d0 */ 196, 52,131,122, 4, 0,141, 92, 1, 12,116, 36,106, 0,106,255,
|
||||
/* 0x05e0 */ 106, 34,106, 3,104, 0, 16, 0, 0,106, 0,199, 69,172, 1, 0,
|
||||
/* 0x05f0 */ 0, 0,232,223,251,255,255,131,196, 24,133,192,137,195,116, 53,
|
||||
/* 0x0600 */ 139, 3, 61,205,128, 97,195,116, 6,199, 3,205,128, 97,195,131,
|
||||
/* 0x0610 */ 125,172, 0,116, 13,106, 5,106, 4, 83,232,143,251,255,255,131,
|
||||
/* 0x0620 */ 196, 12,133,219,116, 15,139, 69,216,137,217, 49,210,131,224,254,
|
||||
/* 0x0630 */ 232,220,252,255,255,255,117,180, 87, 86,232,111,251,255,255,131,
|
||||
/* 0x0640 */ 196, 12,133,192,116, 10,106,127, 91,106, 1, 88,205,128,235,254,
|
||||
/* 0x0650 */ 139, 77,168,141, 4, 15,141, 28, 6, 59, 93,176,115, 30,106, 0,
|
||||
/* 0x0660 */ 106,255,106, 50,255,117,180, 41, 93,176,255,117,176, 83,232, 99,
|
||||
/* 0x0670 */ 251,255,255,131,196, 24, 57,195,116, 24,235,254,131,125,220, 0,
|
||||
/* 0x0680 */ 116, 16,141, 79, 3, 35, 77,204,131,249, 3,119, 5,106, 91, 88,
|
||||
/* 0x0690 */ 205,128,139,117,224,255, 69,184, 15,183, 70, 44,131, 69,200, 32,
|
||||
/* 0x06a0 */ 57, 69,184, 15,140,146,253,255,255,131,125,220, 0,116, 18,139,
|
||||
/* 0x06b0 */ 69,224,102,131,120, 16, 3,116, 8,139, 93,240,106, 45, 88,205,
|
||||
/* 0x06c0 */ 128,131,125,212, 0,116, 8,139, 77,196,139, 85,212,137, 10,139,
|
||||
/* 0x06d0 */ 117,224,139,118, 24, 1,117,196,139, 69,196,141,101,244, 91, 94,
|
||||
/* 0x06e0 */ 95,201,195, 85,137,229, 87, 86, 83,131,236, 32,199, 69,232, 0,
|
||||
/* 0x06f0 */ 0, 0, 0,139, 69, 8,139,117, 16,137, 69,236,128, 62,235,117,
|
||||
/* 0x0700 */ 6,141, 86, 2,137, 85,232,106, 0,139,125, 28,141, 85, 24,139,
|
||||
/* 0x0710 */ 93, 32,141, 69, 32, 86,232, 22,251,255,255,139, 69, 12, 41, 93,
|
||||
/* 0x0720 */ 36,137,250,141, 93,240,255,117,232,137, 69, 32,139, 69, 40, 83,
|
||||
/* 0x0730 */ 255,117,236,137, 69,240,141, 69, 32,141, 79, 52, 80,137,240,137,
|
||||
/* 0x0740 */ 77,228,232,235,251,255,255,137,193,137, 69,224,139, 69,236,186,
|
||||
/* 0x0750 */ 9, 0, 0, 0,232,184,251,255,255,102,139, 79, 44,131,196, 24,
|
||||
/* 0x0760 */ 49,210,102,133,201,116,123,139, 69,228,131, 56, 3,117,103,139,
|
||||
/* 0x0770 */ 93,240, 49,201, 3, 88, 8,137,202,106, 5, 88,205,128,133,192,
|
||||
/* 0x0780 */ 137,198,120, 21,186, 0, 2, 0, 0,137,195,137,249,106, 3, 88,
|
||||
/* 0x0790 */ 205,128, 61, 0, 2, 0, 0,116, 10,106,127, 91,106, 1, 88,205,
|
||||
/* 0x07a0 */ 128,235,254,141, 69,240,137,250,106, 0,137,243, 80,137,240,255,
|
||||
/* 0x07b0 */ 117,236,106, 0,232,121,251,255,255,139, 77,240,137, 69,224,139,
|
||||
/* 0x07c0 */ 69,236,186, 7, 0, 0, 0,232, 69,251,255,255,131,196, 16,106,
|
||||
/* 0x07d0 */ 6, 88,205,128,235, 12, 66, 15,183,193,131, 69,228, 32, 57,194,
|
||||
/* 0x07e0 */ 124,133,139, 69,224,141,101,244, 91, 94, 95,201,195
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user