The Samba-Bugzilla – Attachment 13164 Details for
Bug 12748
use of wrong buffer in cleanupdb_store_child() leads to stack overread
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
git-am fix for 4.6.next, 4.5.next.
0001-cleanupdb-Fix-a-memory-read-error.patch (text/plain), 1.29 KB, created by
Jeremy Allison
on 2017-04-20 23:25:36 UTC
(
hide
)
Description:
git-am fix for 4.6.next, 4.5.next.
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2017-04-20 23:25:36 UTC
Size:
1.29 KB
patch
obsolete
>From ad847918cd30452604ca93e8ef884b54db497dea Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Hanno=20B=C3=B6ck?= <hanno@hboeck.de> >Date: Wed, 19 Apr 2017 14:00:21 +0200 >Subject: [PATCH] cleanupdb: Fix a memory read error >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Bug: https://bugzilla.samba.org/show_bug.cgi?id=12748 > >Signed-off-by: Hanno Böck <hanno@hboeck.de> >Reviewed-by: Volker Lendecke <vl@samba.org> >Reviewed-by: Jeremy Allison <jra@samba.org> >Reviewed-by: Ralph Boehme <slow@samba.org> >(cherry picked from commit fd98a7b6a0053b62802e29fb729e219dc08eef6b) >--- > source3/lib/cleanupdb.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/source3/lib/cleanupdb.c b/source3/lib/cleanupdb.c >index 8832abe27d6..7bf7c7e7080 100644 >--- a/source3/lib/cleanupdb.c >+++ b/source3/lib/cleanupdb.c >@@ -61,7 +61,7 @@ bool cleanupdb_store_child(const pid_t pid, const bool unclean) > struct cleanup_key key = { .pid = pid }; > struct cleanup_rec rec = { .pid = pid, .unclean = unclean }; > TDB_DATA tdbkey = { .dptr = (uint8_t *)&key, .dsize = sizeof(key) }; >- TDB_DATA tdbdata = { .dptr = (uint8_t *)&key, .dsize = sizeof(rec) }; >+ TDB_DATA tdbdata = { .dptr = (uint8_t *)&rec, .dsize = sizeof(rec) }; > int result; > > db = cleanup_db(); >-- >2.12.2.816.g2cccc81164-goog >
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
Flags:
slow
:
review+
Actions:
View
Attachments on
bug 12748
:
13161
|
13162
|
13163
| 13164