FreeBSD Bugzilla – Attachment 221099 Details for
Bug 252157
net/samba411 net/samba412 net/samba413: samba core dumps
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix zero-sized VLAs in messaging part of net/samba413
net__samba413-fix-zero-vla-1.diff (text/plain), 1.46 KB, created by
Dimitry Andric
on 2020-12-30 13:10:44 UTC
(
hide
)
Description:
Fix zero-sized VLAs in messaging part of net/samba413
Filename:
MIME Type:
Creator:
Dimitry Andric
Created:
2020-12-30 13:10:44 UTC
Size:
1.46 KB
patch
obsolete
>Index: net/samba413/files/patch-source3_lib_messages.c >=================================================================== >--- net/samba413/files/patch-source3_lib_messages.c (nonexistent) >+++ net/samba413/files/patch-source3_lib_messages.c (working copy) >@@ -0,0 +1,29 @@ >+--- source3/lib/messages.c.orig 2020-07-09 09:33:56 UTC >++++ source3/lib/messages.c >+@@ -157,7 +157,7 @@ struct messaging_rec *messaging_rec_create( >+ >+ { >+ struct messaging_rec rec; >+- int64_t fds64[num_fds]; >++ int64_t fds64[MAX(1, num_fds)]; >+ size_t i; >+ >+ for (i=0; i<num_fds; i++) { >+@@ -391,7 +391,7 @@ static void messaging_recv_cb(struct tevent_context *e >+ private_data, struct messaging_context); >+ struct server_id_buf idbuf; >+ struct messaging_rec rec; >+- int64_t fds64[MIN(num_fds, INT8_MAX)]; >++ int64_t fds64[MAX(1, MIN(num_fds, INT8_MAX))]; >+ size_t i; >+ >+ if (msg_len < MESSAGE_HDR_LENGTH) { >+@@ -1371,7 +1371,7 @@ static void messaging_dispatch_rec(struct messaging_co >+ >+ if (ev != msg_ctx->event_ctx) { >+ struct iovec iov; >+- int fds[rec->num_fds]; >++ int fds[MAX(1, rec->num_fds)]; >+ int ret; >+ >+ /* > >Property changes on: net/samba413/files/patch-source3_lib_messages.c >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
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 252157
:
221054
| 221099 |
221100
|
221101