mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-14 04:41:26 +00:00
[IRDA]: out of range array access
This patch fixes an out of range array access in irnet_irda.c. Author: David Binderman <dcb314@hotmail.com> Signed-off-by: Samuel Ortiz <samuel.ortiz@nokia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
d93077fb0e
commit
80ba250e59
@ -696,7 +696,7 @@ irnet_daddr_to_dname(irnet_socket * self)
|
||||
{
|
||||
/* Yes !!! Get it.. */
|
||||
strlcpy(self->rname, discoveries[i].info, sizeof(self->rname));
|
||||
self->rname[NICKNAME_MAX_LEN + 1] = '\0';
|
||||
self->rname[sizeof(self->rname) - 1] = '\0';
|
||||
DEBUG(IRDA_SERV_INFO, "Device 0x%08x is in fact ``%s''.\n",
|
||||
self->daddr, self->rname);
|
||||
kfree(discoveries);
|
||||
|
Loading…
Reference in New Issue
Block a user