projects
/
platform
/
upstream
/
lmdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b07b48
)
ITS#7191 Fix mdb_xcursor_init1() unaligned access
author
Hallvard Furuseth
<hallvard@openldap.org>
Sat, 3 Mar 2012 08:49:20 +0000
(09:49 +0100)
committer
Hallvard Furuseth
<hallvard@openldap.org>
Sat, 3 Mar 2012 08:49:20 +0000
(09:49 +0100)
libraries/libmdb/mdb.c
patch
|
blob
|
history
diff --git
a/libraries/libmdb/mdb.c
b/libraries/libmdb/mdb.c
index f028ecb286fef00cb84f6ad76f46f9d068e2c481..2a1cbb229ed91c1f64163aaced7716cda78cf6f6 100644
(file)
--- a/
libraries/libmdb/mdb.c
+++ b/
libraries/libmdb/mdb.c
@@
-4701,8
+4701,7
@@
mdb_xcursor_init1(MDB_cursor *mc, MDB_node *node)
MDB_xcursor *mx = mc->mc_xcursor;
if (node->mn_flags & F_SUBDATA) {
- MDB_db *db = NODEDATA(node);
- mx->mx_db = *db;
+ memcpy(&mx->mx_db, NODEDATA(node), sizeof(MDB_db));
mx->mx_cursor.mc_snum = 0;
mx->mx_cursor.mc_flags = C_SUB;
} else {