You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/contrib
Yodel Eldar 81143b7f9d contrib/plugins/execlog: Add tab to the separator search of insn_disas
Currently, execlog searches for a space separator between the
instruction mnemonic and operands, but some disassemblers, e.g. Alpha's,
use a tab separator instead; this results in a null pointer being passed
as the haystack in g_strstr during a subsequent register search, i.e.
undefined behavior, because of a missing null check.

This patch adds tab to the separator search and a null check on the
result.

Also, an affected pointer is changed to const.

Lastly, a break statement was added to immediately terminate the
register search when a user-requested register is found in the current
instruction as a trivial optimization, because searching for the
remaining requested registers is unnecessary once one is found.

Suggested-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Yodel Eldar <yodel.eldar@gmail.com>
Message-ID: <20250630164124.26315-2-yodel.eldar@gmail.com>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-ID: <20250710104531.3099313-4-alex.bennee@linaro.org>
5 days ago
..
elf2dmp contrib: replace FSF postal address with licenses URL 3 weeks ago
gitdm contrib/gitdm: add Daynix to domain-map 2 years ago
ivshmem-client configure, meson: rename targetos to host_os 2 years ago
ivshmem-server configure, meson: rename targetos to host_os 2 years ago
plugins contrib/plugins/execlog: Add tab to the separator search of insn_disas 5 days ago
systemd tools: build qemu-vmsr-helper 1 year ago
vhost-user-blk contrib/vhost-user-blk: fix overflowing expression 1 year ago
vhost-user-gpu virtio-gpu: Correct virgl_renderer_resource_get_info() error check 1 year ago
vhost-user-input contrib/vhost-user-*: use QEMU bswap helper functions 1 year ago
vhost-user-scsi configure, meson: rename targetos to host_os 2 years ago
vmapple hw/vmapple/vmapple: Add vmapple machine type 5 months ago