Commit Graph

15697 Commits

Author SHA1 Message Date
Giovanni
52826ff3ef 7 more coverity bugs fixed (#8306)
* 1379842/1379836 Resource leak
* 1379834 Resource leak
* 1379742/1379747/1379748/1379749/1379750/1379747/1379760 Resource leak
* 1379752 Resource leak
* 1379751 Double free
* 1379743 Use after free
* 1379624 Uninitialized scalar variable
* 1379332 Out-of-bounds read
2017-08-26 13:08:53 +02:00
Fangrui Song
c7467ed31e Add RVector (array of void* objects) to r_util (#8205)
* Add RVector to r_util
* Add r_vector_{lower,upper}_bound
* Add r_vector_sort
* Add r_vector_find r_vector_insert_range and rename some functions to be idiomatic
2017-08-26 13:05:14 +02:00
pancake
306adb7a50 Fix for the whitespace disassembler 2017-08-26 12:56:14 +02:00
pancake
28b4f62e7e Better output of om 2017-08-26 12:21:01 +02:00
alvarofe
bea31c8f91 Allow to create more maps in esil 2017-08-26 11:36:34 +02:00
condret
9e8d5cf4fa make aeim do aei again if needed 2017-08-26 11:33:07 +00:00
alvarofe
fcdb73c453 Add newline 2017-08-26 11:15:58 +02:00
alvarofe
6b7e00ddcc Use r_io_desc api insted to dereference pointers 2017-08-26 11:03:46 +02:00
SkUaTeR
b0d8017be1 fix windows build (#8317) 2017-08-26 10:09:08 +02:00
condret
e6d4ee8aac fix aeim, this was funny https://asciinema.org/a/omypk8aGYBhYGDdP4sP7zZblw 2017-08-26 05:07:31 +00:00
pancake
46b6051129 Add quiet files list (oq, omq) 2017-08-26 03:49:54 +02:00
pancake
43701f2c7e Create stack map for aeim 2017-08-26 03:13:57 +02:00
pancake
37673daebf Revert "fix for #8285"
This reverts commit b95b67ef20.
2017-08-26 03:03:31 +02:00
pancake
ec6b809728 Minor cleanup in onIterMap 2017-08-26 02:52:33 +02:00
pancake
6d18fca988 Update sdb again 2017-08-26 02:36:13 +02:00
pancake
c24192f834 Update sdb from git 2017-08-26 02:26:16 +02:00
pancake
c540e07d56 Fix some warnings for the windows debugger 2017-08-26 02:24:22 +02:00
pancake
cda876993e Add io.exec and update r2 -x documentation and help message 2017-08-26 02:04:45 +02:00
pancake
777090aa27 Implement om= and o= inside core, not io 2017-08-26 01:50:57 +02:00
pancake
758cef0fb3 Fix issue in dbgmodules that was producing errors on debugger start for XNU 2017-08-26 01:11:42 +02:00
pancake
7650fd3b20 Bring back S= 2017-08-26 01:05:22 +02:00
pancake
0afe0a1ba7 Avoid dupes in anal.jmptbl for analysis, speedup 2017-08-26 00:37:38 +02:00
pancake
d91a4a8166 Make r2 -x by default and fix other recent io regressions 2017-08-26 00:13:24 +02:00
condret
880cc6fd20 Fix section order issue 2017-08-25 23:58:35 +02:00
pancake
4d9c2b7bb1 Fix null deref that was making t/spaces fail 2017-08-25 23:47:21 +02:00
pancake
16dcd8c10e Fix r_io_seek and coreBlockShift crash 2017-08-25 23:45:37 +02:00
pancake
3818684096 Fix r2 -x - 2017-08-25 23:30:55 +02:00
SkUaTeR
a365950cfb Fix ESIL - manage write errors and ignore some others after siol changes 2017-08-25 23:22:33 +02:00
pancake
d1ddace885 Some cleanup 2017-08-25 23:19:59 +02:00
alvarofe
fbd3363c88 stray strikes again 2017-08-25 23:13:03 +02:00
alvarofe
b94a691c45 Another fix 2017-08-25 23:13:03 +02:00
alvarofe
a46b62e220 Fix some regressions 2017-08-25 23:13:03 +02:00
alvarofe
b35dbed06b no use r_core_file_get_next_map and delegate to r_bin_load to map desc
r_bin_load if detects that there was not plugin to handle the file, it
will map the desc, honoring its flags. Therefore, for binaries at 0 when
io.va=0 there won't be nothing mapped

The function r_core_file_get_next_map is maintained but not used to discuss
about what it was its purpose

Fix debugger
2017-08-25 23:13:03 +02:00
Toshi Piazza
71ae199124 Fix bogus 'hidden bytes' metric on ARM (#8312)
* Fix 'Ch' command on ARM

Fixes #8249

* Addresses reviewer concern
2017-08-25 19:47:39 +02:00
pancake
8b15b1ddee Fix #2566 - Avoid negative realloc in microsoft demangler 2017-08-25 19:14:45 +02:00
pancake
48869fc5c7 Fix #8272 - Implement @@s:from to step 2017-08-25 18:57:55 +02:00
Giovanni
6fe6564b8d Fixed 8 coverity bugs (#8305)
* 1372278 Identical code for different branches
* 1372276 Dereference after null check
* 1372273 Logically dead code
DEAD CODE. i must be between 1 and 9.
* 1372272 Logically dead code
At condition 64U - slen > 64U, the value of slen must be between 1 and 63.
At condition 64U - slen > 64U, the value of slen cannot be equal to 0.
The condition 64U - slen > 64U cannot be true.
* 1372265 Dereference after null check
* 1372264 Logically dead code
* 1372262 Logically dead code
* 1372258 Logically dead code
* 1372257 Unchecked return value
2017-08-25 18:12:12 +02:00
alvarofe
4701a89b63 Bring -w- to malloc temporary 2017-08-25 15:24:38 +02:00
Cong Wang
f129316701 Fixed a linker error on OpenSUSE (#8311)
This fixed:

LD rax2
/usr/x86_64-suse-linux/lib64/libpthread.so.0: undefined reference to `h_errno@GLIBC_PRIVATE'
collect2: error: ld returned 1 exit status

by moving -lpthread later.
2017-08-25 12:16:26 +02:00
Giovanni
c4b3b06883 fixed dereferences after null check (#8298)
* fixed dereferences after null check
* Fixed flavour and changed 0xffffffff to UT32_MAX
* removed old code
2017-08-25 12:17:28 +08:00
alvarofe
366cbc4caa Minor fix when opening two files 2017-08-25 01:02:26 +02:00
alvarofe
68c4dbae7e Bring back bin_id to sections 2017-08-25 00:23:47 +02:00
condret
6998fa28b0 add another squasher for analysis 2017-08-25 00:04:08 +00:00
alvarofe
387922146e Avoid to call r_bin_set_env more what it should 2017-08-24 23:25:49 +02:00
condret
08421b288d more RIOAccessLog for analysis 2017-08-24 21:15:38 +00:00
condret
17ef439948 reimplement RIOAccessLog, better and much more elegant than the last time 2017-08-24 18:13:12 +00:00
Giovanni
7b40f7aed1 16 more bugs fixed. most are mem leaks. (#8307)
* 1379261/1379262 Resource leak

* 1379258/1379249 Resource leak

* 1379020 Resource leak

* 1351565/1351564 Logically dead code, 1379019 Uninitialized scalar variable, 1379014 Operands do not affect result

* 1379017 Resource leak

* 1379016 Resource leak

* 1379015 Resource leak

* 1377414 Resource leak

* 1376336 Resource leak

* 1375800 Resource leak

* 1373505/1373509/1373504 Resource leak

* 1373496 Resource leak
2017-08-24 17:20:39 +02:00
condret
bb0f541402 don't access desc in va, when there is no map 2017-08-24 14:25:19 +00:00
condret
43295b5e7c fix section order 2017-08-24 14:15:54 +00:00
condret
b95b67ef20 fix for #8285 2017-08-24 14:13:43 +00:00