Commit Graph

453 Commits

Author SHA1 Message Date
Alan Jowett
f1c7d420e4 Validate that strings in table are null terminated
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
2022-06-11 07:47:44 +03:00
Serge Lamikhov-Center
2879ee62a2 Tiny reformat 2022-06-10 21:29:08 +03:00
Alan Jowett
fc3c397dd0 Reject ELF files with section entries smaller than symbol size
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
2022-06-10 21:08:18 +03:00
Alan Jowett
3e6809cf13 Stop parsing ELF if segment header is beyond end of file
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
2022-06-10 20:54:00 +03:00
Richard Chien
1cb8be7aee Fix potential use of uninitialized variables 2022-05-21 22:55:03 +03:00
Richard Chien
292367751d Add AArch64 relocation types 2022-05-21 22:55:03 +03:00
Richard Chien
01f8fed8ad Change relocation type to unsigned 2022-05-21 22:55:03 +03:00
Serge Lamikhov-Center
21fa533df3
Return back the 'check' command 2022-02-27 23:34:09 +02:00
Serge Lamikhov-Center
3580e7cc7f Move private build commands to the dedicated 'if' branch 2022-02-26 17:42:01 +02:00
Serge Lamikhov-Center
1e6d24d40e Address warnings reported by Windows compilation 2022-02-26 01:56:52 +02:00
Serge Lamikhov-Center
9fb99af870 Add build type parameter to ctest 2022-02-25 21:56:40 +02:00
Serge Lamikhov-Center
58b61fcb0f Try to return Windows build 2022-02-25 21:39:55 +02:00
Serge Lamikhov-Center
39ba40db0b An attempt to fix Travis build 2022-02-25 21:20:04 +02:00
Serge Lamikhov-Center
6f02709001 No need to install Boost Test anymore 2022-02-25 20:28:52 +02:00
Serge Lamikhov-Center
8ae413536b Fix launch directory 2022-02-12 18:59:36 +02:00
Serge Lamikhov-Center
068cb76a3f Most of the tests are passing 2022-02-11 23:15:39 +02:00
Serge Lamikhov-Center
090444309f Address casting on MSVC++ 2022-02-11 09:20:38 +02:00
Serge Lamikhov-Center
590de384b8 Yet another attempt 2022-02-08 18:43:25 +02:00
Serge Lamikhov-Center
a54a38af89 Yet another attempt 2022-02-08 18:42:32 +02:00
Serge Lamikhov-Center
99e4b888c9 Yet another attempt 2022-02-08 18:40:00 +02:00
Serge Lamikhov-Center
6151e5f089 Travis build 2022-02-08 18:32:18 +02:00
Serge Lamikhov-Center
bb920f670f Try to fix Travis build dir 2022-02-08 18:12:46 +02:00
Serge Lamikhov-Center
c0c993490f Adjust Travis build 2022-02-08 18:05:08 +02:00
Serge Lamikhov-Center
792d1898bb Fix the tests location 2022-02-08 17:52:13 +02:00
Serge Lamikhov-Center
54515f19f6 Remove Windows check 2022-02-08 17:49:01 +02:00
Serge Lamikhov-Center
5a4736b5a8 Install Boost Test 2022-02-08 17:45:22 +02:00
Serge Lamikhov-Center
33fe3ac8c8 Remove autoconf tasks from GitHub actions 2022-02-08 17:42:05 +02:00
Serge Lamikhov-Center
353124468f Rename COPYING to LICENSE.txt 2022-02-08 10:55:53 +02:00
Serge Lamikhov-Center
a768dc68d8 Adjust CodeQL tasks 2022-02-08 10:50:13 +02:00
Serge Lamikhov-Center
96c61ee26f Upgrade the version to 3.11 2022-02-08 10:41:27 +02:00
Serge Lamikhov-Center
c058e34b90 ELFIO moved to CMake completely. Remove all autotools files 2022-02-08 10:38:40 +02:00
Serge Lamikhov-Center
722077d4f7 Initialize local var 2022-02-02 23:31:49 +02:00
Serge Lamikhov-Center
0c841c7ed4 No need to disable warnings in a newer VS C++ compiler 2022-02-02 23:28:01 +02:00
Serge Lamikhov-Center
48e78fe1b9 No need to disable warnings in a newer VS C++ compiler 2022-02-02 23:19:15 +02:00
Serge Lamikhov-Center
cc85cc8467 Preparation of 'release' package by CPack 2022-02-01 01:51:36 +02:00
Serge Lamikhov-Center
b5332a5d5b 'note_section' member name is confusing now - template class is capable to work with segments now 2022-01-29 17:03:37 +02:00
Serge Lamikhov-Center
feee9d4ada note_segment_accessor added 2022-01-29 10:48:04 +02:00
Serge Lamikhov-Center
ed2523f095 Adjust stream size when section data changes 2022-01-19 01:24:46 +02:00
scribam
36f78fbf28 Remove semicolon at the end of the namespace definition 2022-01-18 11:40:15 -08:00
scribam
7ca433cbe2 Simplify CMake build in CI 2022-01-18 11:37:31 -08:00
Serge Lamikhov-Center
b6d1a84be0 Disable symbol section size validation (temporary?) 2022-01-18 21:33:18 +02:00
Serge Lamikhov-Center
58c625e409 Apparently, VC++ compiler does not accept -Wextra option 2022-01-18 12:20:02 +02:00
Serge Lamikhov-Center
25ac047ff7 Add an example of damaged ELF file 2022-01-15 16:57:41 +02:00
Serge Lamikhov-Center
0cf852e561 Make get_stream_size() public 2022-01-15 00:16:11 +02:00
y27988
7a1db4060f Update elfio_symbols.hpp
if the section header is bad, return 0 when get symbol num
2022-01-14 13:45:27 -08:00
Serge Lamikhov-Center
69fc128bd5 Make set_stream_size() public again 2022-01-14 23:43:34 +02:00
Serge Lamikhov-Center
7ab1112907 Add -Wextra option 2022-01-14 20:49:23 +02:00
Joshua J. Drake
b05d43860b Add ARM Aarch64 define (from elf.h) 2022-01-08 06:48:35 -08:00
Matthew McRaven
0a229d80fd Respect maximum value of size_t in set_stream_size
When size_t is 32-bits (like in a WASM project), passing in a 64-bit constant leads to compile-time warnings.
2022-01-01 08:12:08 -08:00
Serge Lamikhov-Center
62a6f61acf Apparently, VS build doesn't like -Wextra option 2022-01-01 17:55:25 +02:00