Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[PATCH] radeonfb: Fix static array overrun

radeonfb_parse_monitor_layout() will produce an array overrun if passed with a
substring of length higher than 4 (ie, "XXXXX,YYYYYY").

Coverity Bug 494

Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Antonino A. Daplas and committed by
Linus Torvalds
ed621785 8e650987

+4
+4
drivers/video/aty/radeon_monitor.c
··· 396 396 s1[i] = *s; 397 397 i++; 398 398 } 399 + 400 + if (i > 4) 401 + i = 4; 402 + 399 403 } while (*s++); 400 404 if (second) 401 405 s2[i] = 0;