Re: [PATCH 1/3] Fix backward-ring-buffer.c format-truncation error

2019-07-26 Thread Arnaldo Carvalho de Melo
Em Wed, Jul 24, 2019 at 11:45:10AM -0700, Numfor Mbiziwo-Tiapo escreveu: > Perf does not build with the ubsan (undefined behavior sanitizer) > and there is an error that says: > > tests/backward-ring-buffer.c:23:45: error: ‘%d’ directive output > may be truncated writing between 1 and 10 bytes int

RE: [PATCH 1/3] Fix backward-ring-buffer.c format-truncation error

2019-07-25 Thread David Laight
From: Numfor Mbiziwo-Tiapo > Sent: 24 July 2019 19:45 > > Perf does not build with the ubsan (undefined behavior sanitizer) > and there is an error that says: > > tests/backward-ring-buffer.c:23:45: error: ‘%d’ directive output > may be truncated writing between 1 and 10 bytes into a region of > s

[PATCH 1/3] Fix backward-ring-buffer.c format-truncation error

2019-07-24 Thread Numfor Mbiziwo-Tiapo
Perf does not build with the ubsan (undefined behavior sanitizer) and there is an error that says: tests/backward-ring-buffer.c:23:45: error: ‘%d’ directive output may be truncated writing between 1 and 10 bytes into a region of size 8 [-Werror=format-truncation=] snprintf(proc_name, sizeof(pro