]> git.ipfire.org Git - thirdparty/valgrind.git/commit
FreeBSD regtest: fix for scalar sigaltstack
authorPaul Floyd <pjfloyd@wanadoo.fr>
Sun, 14 Apr 2024 13:32:41 +0000 (15:32 +0200)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Sun, 14 Apr 2024 13:41:00 +0000 (15:41 +0200)
commitb8ab5a1e423b9a601fc2c763e062c4ae2523dd9f
tree85a322b14303ed52fc6be391eaeeee362791054a
parent97386027d692753c46d0687e0a436f3062c311fb
FreeBSD regtest: fix for scalar sigaltstack

I was lazy and using pointers to the same struct for the new and old
data (which isn't allowed, the new is 'restrict'). The current gets
copied to the old first so under Valgrind it worked. In the kernel
there are separate structs (which get copied in and copied out) and
it doesn't work.

Maybe we should consider changing VG_(do_sys_sigaltstack) to have at
least one local copy in order to behave like the kernel.
memcheck/tests/freebsd/scalar.c