23146 Commits

Author SHA1 Message Date
Florian Märkl
ae61aa8e37
Imports Tests from radare2-regressions (#15546) 2019-12-08 15:31:14 +01:00
GustavoLCR
e43c9e7caf Fix some warnings (#15549) 2019-12-08 12:49:58 +01:00
Khairul Azhar Kasmiran
a82297adc1 Fix signed integer overflow in r_asm_massemble (#15551) 2019-12-08 08:08:29 +01:00
GustavoLCR
54c8929a3c Fix #14197 - Don't highlight control chars on hud filter (#15552) ##cons 2019-12-07 20:33:38 +01:00
Florian Märkl
03ef082668 Fix r_type_del() for typedefs (Fix #15337) ##anal (#15553) 2019-12-07 20:33:10 +01:00
Florian Märkl
021ad4d59b Fix an int Overflow in r_asm_massemble() for #15543 2019-12-06 19:32:29 +01:00
Florian Märkl
a3b67403cd Fix length type in r_str_trim_tail() 2019-12-06 19:32:29 +01:00
fcasal
c2f01218f2 Rebase Breakpoints for PIEs ##debug (#12801) 2019-12-06 10:52:26 +01:00
pancake
b7cc6999ac Aim to fix another integer overflow in r_file_slurp 2019-12-05 17:49:21 +01:00
pancake
37998eaf1a Fix integer overflow when assembling a 2GB file 2019-12-05 17:46:52 +01:00
pancake
204b7317be Blindfix for #15543 - aka CVE-2019-19590 2019-12-05 17:43:57 +01:00
yossizap
f12783f4ca Added dp processes info support to gdbr ##debug (#15544)
Most servers/clients should have xml support by now so it should behave
like `dp` in any other debugger. vFile is the only way to get detailed pid info unfortunately.
2019-12-05 13:30:05 +01:00
yossizap
6c8cc9294b Add breaking to ood in linux to avoid execvp freezing ##debug
Execvp may hang until a signal is received on some systems(reproduced in
arch linux) in case the file can't be executed for some reason(broken
symlink, different arch, etc).
2019-12-05 13:28:58 +01:00
yossizap
21ec674969 Allow debug plugins to modify pid/tid on select ##debug
Previously, when using `dp=`, the debug plugin would set a new tid based
on the requested pid, but r_debug_select would set the old tid as dbg->tid,
resulting in issues interacting with the current thread. This could also
be an issue when the requested pid/tid is invalid and the plugin selects
something else.
2019-12-04 10:55:29 +01:00
yossizap
129158101f Fix linux_set_options error ##debug
Previously, setting options would fail sometimes since PT_ATTACH's attach
SIGSTOP wasn't hit before reaching linux_set_options.
2019-12-04 10:55:29 +01:00
yossizap
7823430724 Add process selection to linux native debug ##debug
Previously, `dp=` wouldn't fully switch to the given process since it was
treated like `dpt` thread switching, leaving the debugger in an undefined state.
2019-12-04 10:55:29 +01:00
Florian Märkl
00c92a8240
Add user Pointer to RBNodeFree (#15540) 2019-12-04 10:10:33 +01:00
karliss
cb60b5e8fd Fix sj current position marker after buffer wrapping. (#15538) 2019-12-03 20:50:53 +08:00
Anton Kochkov
fec6330108
Coverity Scan GitHub Action (#15539) 2019-12-03 01:44:54 -06:00
Khairul Azhar Kasmiran
39b40cdedd
ONE_STREAM_HACK & scr.onestream: Force expected ONE_STREAM order if necessary (#15535) 2019-12-02 23:09:38 +08:00
dav1901
a18640529d Fix spp warning (#15530) 2019-12-01 13:08:48 +01:00
David CARLIER
3ac93f1e16 Setting parent pid on pid list on BSD ##debug 2019-12-01 13:08:32 +01:00
Kārlis Seņko
7da14518bc Try showing offset when there are no redo items. 2019-12-01 13:07:34 +01:00
Kārlis Seņko
a50b3a630a Fix handling of many seek history items and other edge cases. 2019-12-01 13:07:34 +01:00
yossizap
164e2cca23 Show all processes for pid 0 using dp ##debug 2019-12-01 11:44:15 +01:00
yossizap
8c02f7ccd3 Add current process field to dpj ##json 2019-11-30 00:50:18 +01:00
yossizap
a99c8026bd Improve linux native debug dp output ##debug
Previously, the command didn't show the pid's path, replaced the path
field with current/ppid, and showed the ppid instead of only showing the
requested process and the children of the requested process.
2019-11-30 00:50:18 +01:00
GustavoLCR
e1648b8196 Fix getting DRX breakpoint size ##debug (#15531) 2019-11-30 00:49:30 +01:00
GustavoLCR
ebaf8b603e Fix some warnings on Windows (#15532) 2019-11-30 00:49:16 +01:00
yossizap
e0b1977668 Fixed overflow that broke remote debugger reopening ##debug (#15525)
opt->sz is initialized with r_buf_size at r_bin_open_io using an io
buffer if r_bin_open_io can't open a file buffer. Since the debuggers
returned unsigned values to opt->sz which is signed, opt->sz would
overflow and contain a negative value, causing r_bin_open_buf to fail.
Went ahead and modified CUR_END values for all debuggers even though this
should only affect remote debuggers. ST64_MAX should be enough.
2019-11-29 11:36:28 +01:00
Kamil Lorenc
e13281829c Add support for or1k (OpenRISC) disasm+analysis (#15515) ##arch 2019-11-29 11:35:16 +01:00
David CARLIER
2fcff51dbc gdbclient reduces risk of use after free down the road ##gdbclient (#15529) 2019-11-29 11:28:52 +01:00
karliss
00a890f4f2 Include last line when greping using foo~n.. (#15524) ##cons 2019-11-29 10:47:23 +01:00
Anton Kochkov
c0c2636d28
Python and VS updates for Windows/clang (#15526)
* Python and VS updates for Windows/clang
2019-11-29 00:50:49 -06:00
GustavoLCR
fa594f6e74
Fix labeler environment 2019-11-28 14:46:03 -03:00
GustavoLCR
4378645f31 Add command to identify window under cursor ##windows (#15518) 2019-11-28 18:40:17 +01:00
David CARLIER
5e25fc9233 windbg module build warning fix (#15514) 2019-11-28 17:56:45 +01:00
GustavoLCR
511e837341 Switch labeler to periodic-labeler (#15517)
With https://github.com/actions/labeler/issues/12
being an issue, the action's labeler is useless for PRs that come from a fork.
This one runs on a cron timer instead and doesn't suffer from the same issue.
2019-11-28 17:55:58 +01:00
Giovanni
69b97b092c
fixed bin.libs loads and dex use after free (#15522) 2019-11-28 16:22:20 +01:00
Florian Märkl
03268da27d
Fix a Double Free for Dex (Fix #15519) (#15521) 2019-11-28 13:36:30 +01:00
Florian Märkl
f019584f97 Add Comments to RCore and kill some unused Members (#15513) 2019-11-27 16:06:18 +01:00
Florian Märkl
e0c3996321 Make Task Scheduling Explicit (#15511) ##core 2019-11-27 16:05:59 +01:00
GustavoLCR
d30f6b8848 Fix #15498 - Fix stdcall stack calling convention (#15508) 2019-11-27 11:42:25 +01:00
Florian Märkl
2a1250c041 Remove unnecessary RConfig Members (#15509) 2019-11-27 11:42:15 +01:00
Florian Märkl
521ac7c28f Fix a Double Free in tms320/c55x+ (#15505) 2019-11-26 16:30:56 +01:00
Khairul Azhar Kasmiran
65ae62609c asm.cmt.off: Accept 0 & 1 as aliases for false & true respectively (#15500) ##core 2019-11-26 12:50:18 +01:00
GustavoLCR
78c232b5c5 Impl. list modules for WinDbg ##debug 2019-11-26 12:37:39 +01:00
GustavoLCR
635f27068b Fix WinDbg IO in page boundaries ##debug
Before we didn't check if a virtual address read/write would go through a page boundary. This fixes it.

Also do some formatting and re-enable some useful error messages
2019-11-26 12:37:39 +01:00
GustavoLCR
2ec3bcf044 Fix XP build 2019-11-26 12:37:39 +01:00
Florian Märkl
70986cc3ce Partially decouple Tasks from RCore 2019-11-26 12:35:30 +01:00