Bug 384631 - Sanitise client args as printed with -v
commit0cf2d76385039217b284ccc1745fc992f0a2a98b
authorJulian Seward <jseward@acm.org>
Tue, 6 Feb 2018 11:54:03 +0000 (6 12:54 +0100)
committerJulian Seward <jseward@acm.org>
Tue, 6 Feb 2018 11:54:03 +0000 (6 12:54 +0100)
tree53c53d0bd51c1b1562b19eb53d9ccc99649ef082
parent482e36cb6ebbb3c818b8213529fd6c2454bc2b33
Bug 384631 - Sanitise client args as printed with -v

umsg_arg, xml_arg: sanitise the guest's command line arguments that we print
in a "Command: " line as part of the preamble, when -v is given.  This
changes any character outside the range 32 .. 127 to '_'.  Printing
unsanitised command line args has been observed to cause xfce4-terminal to
assert.  Of course the command line args actually given to the guest aren't
changed -- this just changes how they are printed.

This fixes #384631.
coregrind/m_libcprint.c