chiark / gitweb /
basic/process-util: we need to take the shorter of two strings
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 18 Nov 2016 01:57:22 +0000 (20:57 -0500)
committerSven Eden <yamakuzure@gmx.net>
Mon, 17 Jul 2017 15:58:35 +0000 (17:58 +0200)
commit113671cf229bebd1ddb0d96dd3790dc84fbf019f
treecdf881140aeb2067a636c91f459f29ceb428359e
parente0e3ee7aeb2d4043149a728e431a9dda949ceed5
basic/process-util: we need to take the shorter of two strings

==30496== Conditional jump or move depends on uninitialised value(s)
==30496==    at 0x489F654: memcmp (vg_replace_strmem.c:1091)
==30496==    by 0x49BF203: getenv_for_pid (process-util.c:678)
==30496==    by 0x4993ACB: detect_container (virt.c:442)
==30496==    by 0x182DFF: test_get_process_comm (test-process-util.c:98)
==30496==    by 0x185847: main (test-process-util.c:368)
==30496==
src/basic/process-util.c