FreeBSD Bugzilla – Attachment 201153 Details for
Bug 233343
[libedit] bind command reads out of bounds and sends output to stderr
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
libedit.patch
libedit.patch (text/plain), 618 bytes, created by
Yuichiro NAITO
on 2019-01-15 05:09:17 UTC
(
hide
)
Description:
libedit.patch
Filename:
MIME Type:
Creator:
Yuichiro NAITO
Created:
2019-01-15 05:09:17 UTC
Size:
618 bytes
patch
obsolete
>Index: lib/libedit/chartype.c >=================================================================== >--- lib/libedit/chartype.c (revision 343036) >+++ lib/libedit/chartype.c (working copy) >@@ -157,7 +157,7 @@ > if (ct_conv_wbuff_resize(conv, bufspace + CT_BUFSIZ) == -1) > return NULL; > >- wargv = el_malloc((size_t)argc * sizeof(*wargv)); >+ wargv = el_malloc((size_t)(argc+1) * sizeof(*wargv)); > > for (i = 0, p = conv->wbuff; i < argc; ++i) { > if (!argv[i]) { /* don't pass null pointers to mbstowcs */ >@@ -175,6 +175,7 @@ > bufspace -= (size_t)bytes; > p += bytes; > } >+ wargv[i] = NULL; > > return wargv; > }
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 233343
:
199366
|
200904
|
200905
| 201153 |
201348