« Previous | Next » 

Revision 314b1811

ID314b1811c15f4e982e4667d9b845aee4b5a63d91

Added by Gerd Hoffmann about 12 years ago

scsi-disk: fix buffer overflow

In case s->version is shorter than 4 bytes we overflow the memcpy src
buffer. Fix it by clearing the target buffer, then copy only the
amount of bytes we actually have.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences