summaryrefslogtreecommitdiffstats
path: root/sound/hda
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2017-07-18 13:48:09 +0200
committerTakashi Iwai <tiwai@suse.de>2017-07-18 17:54:41 +0200
commit7ad210ace5c1701421a4defa9d9e830a6f2ee56b (patch)
tree705ef49c6336ed95591902878f4695622980cbc2 /sound/hda
parentc6e486ffb2e5a3a3e8f34fb24a6f6f2683cf010b (diff)
downloadop-kernel-dev-7ad210ace5c1701421a4defa9d9e830a6f2ee56b.zip
op-kernel-dev-7ad210ace5c1701421a4defa9d9e830a6f2ee56b.tar.gz
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 <arnd@arndb.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/hda')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud