aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2017-07-18 13:48:09 +0200
committerTakashi Iwai <[email protected]>2017-07-18 17:54:41 +0200
commit7ad210ace5c1701421a4defa9d9e830a6f2ee56b (patch)
tree705ef49c6336ed95591902878f4695622980cbc2 /tools/perf/scripts/python/bin/stackcollapse-record
parentc6e486ffb2e5a3a3e8f34fb24a6f6f2683cf010b (diff)
ALSA: rme9652: fix format overflow warnings
gcc-7 warns about a possible sprintf format string overflow with a temporary buffer that is used to print from another buffer of the same size: sound/pci/rme9652/hdspm.c: In function 'snd_hdspm_create_alsa_devices': sound/pci/rme9652/hdspm.c:2123:17: error: ' MIDIoverMADI' directive writing 13 bytes into a region of size between 1 and 32 [-Werror=format-overflow=] This extends the temporary buffer to twice the size, and changes the code to use the safer snprintf() across the entire file. The longer buffer is still necessary to avoid a format-truncation warning. Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions