Commit Graph

26372 Commits

Author SHA1 Message Date
pancake
84e323334c Fix recent android build regression 2021-08-19 18:26:22 +02:00
pancake
50d84c4c02 Fix assert when using the internal line editor with no file 2021-08-19 18:17:39 +02:00
pancake
a060e1e22e
Implement /ck command to search for crypto constant tables ##search (#19000) 2021-08-19 18:12:08 +02:00
pancake
25a2e50ad0
wv1,2,4,8 accept many space-separated numbers now ##shell 2021-08-19 18:09:00 +02:00
pancake
a58b095ab7 Add context in visual xrefs ##visual 2021-08-19 16:31:50 +02:00
pancake
9525cb90b1
Add portability support for Vinix ##build (#18997) 2021-08-19 12:25:50 +02:00
pancake
dbf591b529
Support arch.* namings for the parse plugins ##disasm 2021-08-19 12:12:58 +02:00
pancake
fa2e1f9f5a
Fix #18783 - Support ELFs with phnum > 0xFFFF ##bin
* Useful for loading qemu coredumps
2021-08-19 12:12:43 +02:00
RHL120
897960352d
Fix a problem with rvc/git (#18994) 2021-08-19 03:34:18 +02:00
pancake
89173f99dc
Dont check out of bounds last chars ##cons 2021-08-18 13:35:23 +02:00
pancake
2284394120 Honor bool in io.va, scr.interactive, scr.prompt and cfg.fortunes ##core 2021-08-18 12:09:20 +02:00
pancake
6ca0abfe07 Fix w32 build (cdecl vs stdcall)
error C2440: '=': cannot convert from:
* 'HANDLE (__stdcall *)(DWORD,BOOL,DWORD)'
* 'HANDLE (__cdecl *)(DWORD,BOOL,DWORD)'
2021-08-18 11:14:26 +02:00
pancake
06a1270df7
Add meson support for the anal.arm.v35 plugin ##build 2021-08-18 03:35:01 +02:00
pancake
7342aa3ea0 Use #pragmaMessage instead of #warning 2021-08-18 03:23:10 +02:00
pancake
67b8af8f5b
Fix the windows debugger and make it more stable ##debug 2021-08-18 01:41:30 +02:00
pancake
b91a28d3d3 Fix various issues spotted by the VS warnings 2021-08-18 01:40:30 +02:00
pancake
18011597c4
Fix more sign bugs spotted by vs (#18990) 2021-08-17 23:12:22 +02:00
pancake
4860de6948 Improve Windows build scripts 2021-08-17 20:18:43 +00:00
pancake
17637c670f Add preconfigure/configure/make batch scripts for Windows ##build 2021-08-17 19:53:14 +00:00
pancake
6d3df9960c
Properly stringify the RAnalOP.type field ##anal 2021-08-17 16:03:11 +02:00
pancake
4fd4fdcc10 Fix asan crash in pif? 2021-08-17 15:59:03 +02:00
pancake
f931473bec
Use data-align = 2 for v850 (#18988) 2021-08-17 15:47:09 +02:00
pancake
0949413535 More fixes 2021-08-17 01:29:33 +00:00
pancake
f766597b9c More fixes 2021-08-17 01:09:03 +00:00
pancake
bd888a2edf Fix more vs warnings 2021-08-17 00:35:52 +00:00
pancake
8a78055996
Fix all the sign UB bugs in the risc disassembler spotted by VS (#18986) 2021-08-17 02:09:49 +02:00
pancake
0acb19b68a
Fix some warnings spotted by visual studio (#18985)
Co-authored-by: pancake <pancake@nopcode.org>
2021-08-16 20:45:17 +02:00
pancake
b0d8f6d3fc Extend ?* with /R? and /b? 2021-08-16 11:22:43 +02:00
Dennis Goodlett
5e90f5efbd
Add r_sign_metric_search to r_sign.h ##signatures (#18984) 2021-08-16 10:00:09 +02:00
pancake
fc14b879ab Remove dbg. config var as it is just a typo 2021-08-15 11:00:14 +02:00
pancake
69cb36e8cf Dont save projects when no project is used ##projects 2021-08-15 10:59:15 +02:00
pancake
09033f4406
Honor faster ^D on interactive execution path ##cons (#18983) 2021-08-14 21:06:52 +02:00
pancake
feeb7551ad undef before redefine 2021-08-14 18:46:32 +02:00
pancake
9a2636b32b
Remove other useless and incomplete treesitter leftovers and get +400 new commands in the recursive help ##shell 2021-08-14 18:28:20 +02:00
Apkunpacker
9be5aaad59
Small fortune typo fixes 2021-08-14 09:54:13 +02:00
pancake
88a3524734 Fix tests 2021-08-14 02:25:16 +02:00
pancake
b43dc081b2 Add two more tests for the internal grep 2021-08-14 02:20:25 +02:00
pancake
30704f54cd
Remove colons in "?" number conversion output ##shell 2021-08-14 01:50:59 +02:00
pancake
cdda780e93
Honor < and > comparison operators in RNumMath ##shell (#18979) 2021-08-13 21:13:13 +02:00
pancake
847d1671ce
Use RNum.math in "?b" to make '?b 1<<1' work ##shell 2021-08-13 20:29:17 +02:00
Apkunpacker
4985171219
Update fortunes.fun (#18977) 2021-08-13 20:03:32 +02:00
pancake
9c53763b53 Add m68k.gnu plugin to the meson builds 2021-08-13 19:07:16 +02:00
Enshin Andrey
4cec1a6d0b
Add xX key descriptions in the help message ##panels 2021-08-13 18:38:40 +02:00
RHL120
260dbb9e8f
Integrate rvc in projects and add a default commit message ##vc
* Add an rvc_git_repo_exists ()
* Add a prj.vc.message variable
* Honor interactivity to rvc
* Integrate rvc into projects
2021-08-13 18:37:18 +02:00
Azox
cf93f2aaf9
Fix emulation for AARCH64 ldr,str,stp,ldp instructions ##esil
* Modified tests for LDP (preindex, no writeback)
2021-08-13 18:07:47 +02:00
Dennis Goodlett
078714d0b2 Rasign2 space test fix 2021-08-12 01:14:30 +02:00
Dennis Goodlett
197c9d5316 Fix bug in zaf creating zignspace ##signatures 2021-08-11 01:16:46 +02:00
Dennis Goodlett
eaa235a1b1 Better description for a signatures 2021-08-11 01:16:46 +02:00
László Vaskó
8ef090c017
r_cons_printf_list: fix potential busy loop (#18970)
In case the string to be written by `vsnprintf` including `\0`
termination equals to the length of the buffer, the code enters in a
busy loop. The original code seems to assume, that `vsnprintf` won't
terminate the string with `\0` character which it does.

The [documentation of `vsnprintf`
states](https://en.cppreference.com/w/c/io/vfprintf):

> `int vsnprintf( char *restrict buffer, size_t bufsz, const
> char *restrict format, va_list vlist );`
>
> Writes the results to a character string buffer. At most bufsz - 1
> characters are written. The resulting character string will be
> terminated with a null character, unless bufsz is zero. If bufsz is
> zero, nothing is written and buffer may be a null pointer, [...]

This means that the `size` variable should be set to the total
available length of the buffer, not `length - 1`. Furthermore on the
return value the manual writes:

> however the return value (number of bytes that would be written not
> including the null terminator) is still calculated and returned.

This means that the `written` size returned doesn't count the
terminating `\0` in the length, so the value of `written` can be at
most `size - 1` before truncating the output. In other words a string
having`size = written + 1` would fit exactly in the buffer.

Also as `vsnprintf` will write the terminating `\0` there is no need
to explicitly do that.
2021-08-10 00:31:20 +02:00
Dennis Goodlett
47bd6fa966
Expand r_sign API ##signatures
* Remove RCore from r_sign_fcn_vars
* Move r_sign_add_func to r_sign
* Add r_sign_all_functions to r_sign
* Use r_sign in rasign2 ##signatures
2021-08-08 00:42:47 +02:00