git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f09d4f2
)
ALSA: hdsp: silence a sprinft() overflow warning
author
Dan Carpenter
<dan.carpenter@oracle.com>
Sat, 22 Aug 2015 09:24:13 +0000
(12:24 +0300)
committer
Takashi Iwai
<tiwai@suse.de>
Sat, 22 Aug 2015 09:36:26 +0000
(11:36 +0200)
card->shortname is a 32 char string so the sprintf() can theoretically
overflow. snd_rawmidi_new() can accept strings up to 64 bytes long.
I have made the temporay buf[] array 40 bytes long and changed the
sprintf() to snprintf().
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/rme9652/hdsp.c
patch
|
blob
|
history
diff --cc
sound/pci/rme9652/hdsp.c
Simple merge