]> git.ipfire.org Git - thirdparty/valgrind.git/commit
vgdb: Fix read check in report_pid.
authorMark Wielaard <mark@klomp.org>
Sat, 25 May 2019 14:25:19 +0000 (16:25 +0200)
committerMark Wielaard <mark@klomp.org>
Sat, 25 May 2019 14:25:19 +0000 (16:25 +0200)
commitf7f48f91b046751def38326f8a8547bb8c98d4f2
tree1eb3b32038f84cee757cf7e5887406ac5bbe8483
parent033d013bebeb3471c0da47060deb9a5771e6c913
vgdb: Fix read check in report_pid.

When read fails it will return -1. In which case we might assign
cmdline[sz] = 0 and print a garbage cmdline. Fix the test to check
the return value is > 0.
coregrind/vgdb.c