Commit Graph

584 Commits

Author SHA1 Message Date
bladchan
b996977925 fix alloc-dealloc-mismatch reported in ASAN 2022-09-04 21:20:43 +03:00
Serge Lamikhov-Center
5468d90e06 Adapt to the new notes interface 2022-09-01 18:56:29 +03:00
Serge Lamikhov-Center
dd425d83c6 Modernize more files 2022-09-01 18:50:02 +03:00
Serge Lamikhov-Center
fc4df31fc2
Delete cmake.yml
It is a duplication of existing Action CI
2022-09-01 16:27:22 +03:00
Serge Lamikhov-Center
bd2673db1f Add missing <array> include 2022-09-01 16:20:42 +03:00
Serge Lamikhov-Center
d7c21907e7
Update codeql-analysis.yml 2022-09-01 08:53:50 +03:00
Serge Lamikhov-Center
95edc7bf71
Update c-cpp.yml 2022-09-01 08:52:22 +03:00
Serge Lamikhov-Center
c22276ec1a Modernize 'segment' implementation 2022-08-31 22:14:32 +03:00
Serge Lamikhov-Center
847249dd27
Create cmake.yml 2022-08-31 20:01:37 +03:00
Serge Lamikhov-Center
3e8c0c8002
Update c-cpp.yml 2022-08-31 20:00:20 +03:00
Serge Lamikhov-Center
156cac5fa1 Modernize the section implementation 2022-08-30 19:42:28 +03:00
Serge Lamikhov-Center
d4295a5ec9 Change 'launch' arguments 2022-08-29 08:21:17 +03:00
Serge Lamikhov-Center
af080f739e Use unique_ptr instead of raw pointers 2022-08-29 08:20:07 +03:00
Serge Lamikhov-Center
a3e2a1f07f Change placement of the fuzzer executable 2022-07-28 17:53:21 +03:00
Kamay Xutax
7227a0913f Fix sign-compare error
I just noticed that on my compiler;
probably due to recent version, not sure.
2022-07-18 19:01:22 +03:00
Serge Lamikhov-Center
eeb00b60b2 Initial attempt for lazy load - segment loading 2022-07-17 19:13:49 +03:00
Serge Lamikhov-Center
92658df379 In case of the top project, build examples and tests by default 2022-07-09 16:25:29 +03:00
Serge Lamikhov-Center
bc2532bd33 Remove Travis badge 2022-07-04 04:46:39 +00:00
Kamay Xutax
e633e80886 Added auxiliary vectors
TODO: We might add examples run-time one day.
2022-07-01 20:13:04 +03:00
Serge Lamikhov-Center
91017d3edb Add ASAN sanitizer to the fuzzer 2022-06-21 16:41:20 +03:00
Serge Lamikhov-Center
1b4dc7be42 Travis is not used any longer 2022-06-21 14:45:30 +03:00
Serge Lamikhov-Center
ef2fa127c0 Add elfio_fuzzer to tests' compilation 2022-06-21 09:49:46 +03:00
Serge Lamikhov-Center
9d6984a59b An attempt to address unusual case where 'note' size is larger than Elf_Word 2022-06-21 08:07:06 +03:00
Serge Lamikhov-Center
ee891ca7c9 Make sure that dynamic section entry size is larger than ElfXX_Dyn structure 2022-06-19 23:21:56 +03:00
Serge Lamikhov-Center
cf954a8d42 Prevent memory access to data out the notes' section 2022-06-19 17:37:22 +03:00
Serge Lamikhov-Center
cb61d172bb Prevent a memory leak 2022-06-19 17:34:28 +03:00
Serge Lamikhov-Center
3aad501f5b Add check for incorrect section/segment entry size 2022-06-18 22:47:37 +03:00
Serge Lamikhov-Center
90737d9937 Add libFuzzer output file 2022-06-16 17:31:30 +03:00
Serge Lamikhov-Center
07ef317550 Check out of the file boundary access attemps 2022-06-16 17:30:22 +03:00
Serge Lamikhov-Center
38d61e30a7 Refactor var declaration 2022-06-11 06:13:41 +00:00
Serge Lamikhov-Center
cfa213d646 Reduce complexity of 'if' nesting 2022-06-11 05:59:51 +00:00
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