The Samba-Bugzilla – Attachment 14718 Details for
Bug 13704
Samba dumps core on SIGBUS in notifyd.c:452
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
avoid of SIGBUS on notifyd.c:452
28944354-sigbus.patch (text/plain), 1.28 KB, created by
Jura Sasek
on 2018-12-06 00:10:26 UTC
(
hide
)
Description:
avoid of SIGBUS on notifyd.c:452
Filename:
MIME Type:
Creator:
Jura Sasek
Created:
2018-12-06 00:10:26 UTC
Size:
1.28 KB
patch
obsolete
>Samba dumps core on sigbus in notifyd.c:452 > >--- a/source3/smbd/notifyd/notifyd.c 2018-12-05 14:07:06.086637390 +0000 >+++ b/source3/smbd/notifyd/notifyd.c 2018-12-05 15:56:41.351170680 +0000 >@@ -575,6 +575,7 @@ > struct notify_rec_change_msg *msg; > size_t pathlen; > bool ok; >+ struct notify_instance instance; > > DBG_DEBUG("Got %zu bytes from %s\n", data->length, > server_id_str_buf(src, &idbuf)); >@@ -585,8 +586,9 @@ > return; > } > >+ memcpy(&instance, &msg->instance, sizeof(instance)); /* avoid of SIGBUS */ > ok = notifyd_apply_rec_change( >- &src, msg->path, pathlen, &msg->instance, >+ &src, msg->path, pathlen, &instance, > state->entries, state->sys_notify_watch, state->sys_notify_ctx, > state->msg_ctx); > if (!ok) { >@@ -1337,6 +1339,7 @@ > struct notify_rec_change_msg *chg; > size_t pathlen; > bool ok; >+ struct notify_instance instance; > > ok = notifyd_parse_rec_change(r->buf.data, r->buf.length, > &chg, &pathlen); >@@ -1346,8 +1349,9 @@ > goto fail; > } > >+ memcpy(&instance, &chg->instance, sizeof(instance)); /* avoid of SIGBUS */ > ok = notifyd_apply_rec_change(&r->src, chg->path, pathlen, >- &chg->instance, peer->db, >+ &instance, peer->db, > state->sys_notify_watch, > state->sys_notify_ctx, > state->msg_ctx);
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 Raw
Actions:
View
Attachments on
bug 13704
: 14718 |
14723