Open XVilka opened 3 years ago
some of them are legit, e.g. the "chcp" one in librz/cons/cons.c
Couldn't that be done using SetConsoleCP
and SetConsoleOutputCP
API? I don't know Windows Console API so I might be wrong.
@karliss in fact it calls SetConsoleOutputCP()
right before. Not sure why it was done. Maybe @kazarmy knows more
There is a bunch of
rz_sys_cmd*()
calls in thelibrz/
while most of them unnecessary and can be achieved with the calling of the API function.There are two categories of such calls - calling of the internal utils, e.g.
rz-bin
, and calling of the external tools, e.g.cp
ormove
.Todo
Note though, that some of them are legit. Tick the once which are, otherwise link PR.
librz/cons/cons.c
librz/util/sys.c
librz/util/file.c
librz/io/p/io_winedbg.c
librz/egg/egg_Cfile.c
librz/arch/p/asm/asm_x86_nasm.c
librz/socket/socket.c
librz/socket/run.c
librz/socket/socket_http.c
librz/include/rz_util/rz_sys.h
librz/core/cmd/cmd_debug.c
- Also https://github.com/rizinorg/rizin/issues/1475librz/core/cmd/cmd.c
- Necessary: open editor, or non-Rizin command execution.librz/core/tui/define.c
librz/core/core.c
librz/core/rtr_http.c
librz/main/rz-find.c