]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Have VG_(is_in_syscall) return False if no syscall was done yet.
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Tue, 10 Sep 2019 20:47:58 +0000 (22:47 +0200)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Tue, 10 Sep 2019 20:47:58 +0000 (22:47 +0200)
commit53cceb2ac2c8f92e875b06c2017e707295e3e96b
treeb9345d87703e01cb0ade1adbbfebfc6acec41526
parent2fe37c05bba5f0b58e0957e37cf4d5682e5a6468
Have VG_(is_in_syscall) return False if no syscall was done yet.

As when no syscall was done yet, the syscallInfo pointer is still null,
we return False if this is null, rather than SEGV due to null ptr.

This can at least happen when reporting the scheduler status before
the first syscall was done.
coregrind/m_syswrap/syswrap-main.c