[PATCH] perf event-parse: Use fixed size string for comms

2018-08-29 Thread cphlipot0
From: Chris Phlipot Some implementations of libc do not support the 'm' width modifier as part of the scanf string format specifier. This can cause the parsing to fail. Since the parser never checks if the scanf parsing was successesful, this can result in a crash. Change the comm string to be

[PATCH] perf event-parse: Use fixed size string for comms

2018-08-29 Thread cphlipot0
From: Chris Phlipot Some implementations of libc do not support the 'm' width modifier as part of the scanf string format specifier. This can cause the parsing to fail. Since the parser never checks if the scanf parsing was successesful, this can result in a crash. Change the comm string to be

[PATCH] perf util: Fix bad memory access in trace info.

2018-08-29 Thread cphlipot0
From: Chris Phlipot In the write to the output_fd in the error condition of record_saved_cmdline(), we are writing 8 bytes from a memory location on the stack that contains a primitive that is only 4 bytes in size. Change the primitive to 8 bytes in size to match the size of the write in order

[PATCH] perf util: Fix bad memory access in trace info.

2018-08-29 Thread cphlipot0
From: Chris Phlipot In the write to the output_fd in the error condition of record_saved_cmdline(), we are writing 8 bytes from a memory location on the stack that contains a primitive that is only 4 bytes in size. Change the primitive to 8 bytes in size to match the size of the write in order