FreeBSD Bugzilla – Attachment 6753 Details for
Bug 15101
[PATCH] cdcontrol does not perform bounds checking WRT dev name lengths
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 644 bytes, created by
jedgar
on 1999-11-26 14:50:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
jedgar
Created:
1999-11-26 14:50:00 UTC
Size:
644 bytes
patch
obsolete
>Index: cdcontrol.c >=================================================================== >RCS file: /home/ncvs/src/usr.sbin/cdcontrol/cdcontrol.c,v >retrieving revision 1.23 >diff -u -r1.23 cdcontrol.c >--- cdcontrol.c 1999/11/18 23:04:38 1.23 >+++ cdcontrol.c 1999/11/26 14:33:21 >@@ -1042,11 +1042,11 @@ > return (1); > > if (*cdname == '/') >- strcpy (devbuf, cdname); >+ snprintf (devbuf, 80, "%s", cdname); > else if (*cdname == 'r') >- sprintf (devbuf, "/dev/%s", cdname); >+ snprintf (devbuf, 80, "/dev/%s", cdname); > else >- sprintf (devbuf, "/dev/r%s", cdname); >+ snprintf (devbuf, 80, "/dev/r%s", cdname); > > fd = open (devbuf, O_RDONLY);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 15101
: 6753