FreeBSD Bugzilla – Attachment 12606 Details for
Bug 24278
strlcat may read from inaccessible memory
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 474 bytes, created by
Tony Finch
on 2001-01-12 19:10:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Tony Finch
Created:
2001-01-12 19:10:00 UTC
Size:
474 bytes
patch
obsolete
>Index: strlcat.c >=================================================================== >RCS file: /home/ncvs/src/lib/libc/string/strlcat.c,v >retrieving revision 1.2 >diff -u -r1.2 strlcat.c >--- strlcat.c 1999/08/10 05:58:57 1.2 >+++ strlcat.c 2001/01/12 18:48:35 >@@ -51,7 +51,7 @@ > size_t dlen; > > /* Find the end of dst and adjust bytes left but don't go past end */ >- while (*d != '\0' && n-- != 0) >+ while (n-- != 0 && *d != '\0') > d++; > dlen = d - dst; > n = siz - dlen;
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 24278
: 12606