* Fixed missing SN alias in AVR profile.
* Fixed "(null)" instruction and analysis when unknown type is found.
* Added tests for AVR regarding (null) and invalid analysis
* AVR test is broken, due random behavior on clang.
* Fixed memleak on rz_diffchar_new
* extended_arg is not used after line 87
* useless assignment
* use imm not opnd->addr.offset.imm
* fixing usage of op and memleaks related to it
* invalid cc usage on rz_debug_arg_get
* null ptr deref and memleak in gdb_to_rz_profile
* Fixed logic on instruction decoding on amd29k
* Fixed undef negative shift and memleak on mips assembler
By default, pipes file descriptors are not closed on exec. This means
they are inherited by the child process. However, this may be a problem
in particular in multi-threading programs (e.g. rz-test), because EOF is
not sent to a pipe until the last pipe file descriptor is closed.
This commit makes sure that by default pipes are created with O_CLOEXEC,
so they are closed whenever an exec syscall is executed. Usually pipe
file descriptors are duplicated to be stdin/stdout/stderr of the
children process and those dupped file descriptors won't be closed on
exec.
In case pipe2 is not available (e.g. MacOS), we do a pipe + fcntl, which
is in theory racy (see man open(2)). For this reason pipe, exec, system,
etc. are wrapped in rz_sys and they use a global mutex to make sure a
pipe is either created and set as O_CLOEXEC or not created at all before
an exec operation is done.
On very old systems, O_CLOEXEC may not be available at all. In those
cases, which should be rare, we just keep a list of file descriptors
created with rz_sys_pipe that we need to close before executing another
process.
Interaction with external libs may be tricky. We expect external libs to
create files/pipes that need to be closed on exec with the right flags
and we expect rizin code to manually close pipes file descriptors as
appropriate if the exec syscall is executed by an external library
(non-rizin code).
Make sure execl is found by acr/make