Commit graph

385 commits

Author SHA1 Message Date
pancake
3495e98545 Fix Warning: Too big version thing in some ELFs 2016-08-14 19:48:29 +02:00
Álvaro Felipe Melchor
b765f0e786 Fix #4639 - Problem with arm32 2016-08-07 18:00:40 +02:00
Jeffrey Crowell
e65ceb5dee fix some memory leaks reported by coverity 2016-07-09 01:41:56 -04:00
Álvaro Felipe Melchor
c24a12c4c8 Fix paddr to vaddr translation in elf (#5300) 2016-07-08 21:42:02 +02:00
pancake
4c8a1b212f Fix warning in elf.c 2016-07-05 22:57:09 +02:00
Rakholiya Jenish
339a5b7b18 fix iZ and negative o for large files (#5242)
correct the add section check

keep commented part to it's original code

int to ut64

minor fix and limit buffer size in case file size cannot be allocted

remove section check

show size in readable format

minor changes
2016-07-05 12:46:28 +02:00
Álvaro Felipe Melchor
3d2e922dc9 Fix oob in elf parser 2016-06-29 00:03:36 +02:00
Álvaro Felipe Melchor
d978b2cde4 fix oob in version elf 2016-06-27 12:17:25 +02:00
Álvaro Felipe Melchor
4b497540a1 try to fix oob 2016-06-26 23:21:41 +02:00
Álvaro Felipe Melchor
a18bd79724 fix regression version info 2016-06-26 23:07:47 +02:00
Álvaro Felipe Melchor
76522930b0 Fix oob in store_versioninfo_gnu_verneed 2016-06-26 22:34:07 +02:00
pancake
9eef523bf9 Fix previous commit 2016-06-26 01:34:42 +02:00
pancake
564f63d9c3 Fix oobread in elf parser for 004e_00000000652b6080_000000000b3b7000.inp 2016-06-25 20:43:23 +02:00
pancake
30deb7e3f2 Fix 004e_00007ffd2a9dc86.. from gamozo 2016-06-25 04:44:19 +02:00
Álvaro Felipe Melchor
efd4ece4c2 fix warning comparing unsigned int >= 0 2016-06-22 23:54:21 +02:00
Álvaro Felipe Melchor
db28a0b20d fix hang in version info ELF 2016-06-21 16:42:34 +02:00
pancake
55e0804d1d Fix some null-terminated strings issues in the procfs parsing 2016-06-20 18:22:25 +02:00
pancake
414aef609f Refix the ELF phdr max size issue 2016-06-10 11:00:40 +02:00
pancake
a46689b1b4 Fix oobread in ELF with 70d23ff5faa2716094f1fd1f081f9281678455dd 2016-06-17 17:16:41 +02:00
pancake
48e5f8fc7e Fix ELF crash (null deref when missing shdr 2016-06-16 22:18:10 +02:00
Joshua J. Drake
176054c006 Fix ELF section size validation (#5148) 2016-06-16 16:43:04 +02:00
pancake
794c60bf18 Fix #5138 - huge load times for fuzzed versioninfo ELFs 2016-06-15 15:30:51 +02:00
pancake
e4af7f9b23 Fixes for ELF/Thumb detection handling 2016-06-14 14:36:03 +02:00
pancake
24aec5be8c Fix all latest COVs 2016-06-07 10:03:04 +02:00
pancake
0845add4cf Implement relocs for ELF-powerpc 2016-06-07 00:12:45 +02:00
pancake
e8b8831b83 Fix elf-ppc endian bit 2016-06-06 23:18:21 +02:00
pancake
eb9feef231 Fixes for powerpc endian in mach0 and other issues 2016-06-06 22:57:22 +02:00
oblique
f06e11b6f4 Fix warnings (#5078)
* Fix gcc warnings

* Fix strtoull return
2016-06-06 00:33:11 +02:00
pancake
2702c3f346 Initial regload support for linux-x32/64 coredumps 2016-06-02 14:16:57 +02:00
Álvaro Felipe Melchor
8939958569 Fix #5040
oob read in init_dynamic_section elf format code
2016-05-30 21:51:18 +02:00
andrey.torsunov
2c25a8d503 Reduce memory leak for commands: oo, doo 2016-05-23 20:17:41 +02:00
pancake
5ae9f9b17f Fix endian issue in the ELF parser 2016-05-19 17:28:01 +02:00
Jeffrey Crowell
056f8a7efa fix div by 0 and memleak in elf.c
CID 1338361
CID 1355149
2016-05-07 00:39:28 -04:00
Álvaro Felipe Melchor
6c7d91c5c4 Fix #4749 - fix parsing dynamic section 2016-05-06 22:24:41 +02:00
Damien Zammit
af0a865d9f WIP - Totally remove host endianness dependence
- Adds endian aware functions
- Removes references to host endian
- Uses binary detected endianness else tries LE and restricts by RAsmPlugin
- Fixes gdb debugger endianness when debugging BE qemu gdbserver

Signed-off-by: Damien Zammit <damien@zamaudio.com>
2016-05-04 23:42:17 +10:00
Álvaro Felipe Melchor
149c7567ed improve arm/thumb detection for .so 2016-05-02 23:00:53 +02:00
pancake
d1a409268d Fix #4686 - Segfault in ELF parser 2016-04-23 00:06:09 +02:00
mkosmach
70f00feb8e Add reloc_type to "Unsupported relocs" message 2016-04-13 21:52:56 +02:00
pancake
ddd6c18974 Fix #4572 - Fix heap bof in elf versioninfo parser 2016-04-10 02:00:52 +02:00
Álvaro Felipe Melchor
400664a25c Fix #4571 - thx revskills 2016-04-09 19:09:09 +02:00
Álvaro Felipe Melchor
c711dfabdd remove another stray character 2016-04-09 12:06:38 +02:00
Álvaro Felipe Melchor
df4cb535f0 Fix #4580 - thx @revskills 2016-04-09 11:47:35 +02:00
Anton Kochkov
45720df1ef Fix CID 1353771 2016-04-06 00:41:07 +03:00
Álvaro Felipe Melchor
b0c6ae4409 Fix #4295 and #4155
This commit is the first attempt to improve relocation
recognition when dealing with relocatables elf-files
2016-04-04 23:09:58 +02:00
Álvaro Felipe Melchor
593b6c85e5 Fix #4481 2016-04-03 17:02:47 +02:00
pancake
ef317a026b Fix #4462 - null deref in elf parser 2016-03-30 22:54:48 +02:00
michalbednarski
dfb3680298 Fix NULL dereference of Elf_(Verdaux) *aux 2016-03-30 16:03:52 +02:00
Adrien Garin
10de21de7e RBin: fix PE and ELF versioninfo
PE parser is now able to get the StringTable value even if the
wValueLength of the structure is incorrect.

Fix a regression with ELF versioninfo.
2016-03-18 18:35:05 +01:00
pancake
bab0eb62c8 Fix sdb leaks in elf versioninfo 2016-03-17 11:11:12 +01:00
Álvaro Felipe Melchor
7e5fd3d11f Fix versioninfo crashes elf 2016-03-16 18:10:49 +01:00