mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
Fix size check
This commit is contained in:
parent
04b522cc72
commit
8763c41e30
@ -4003,7 +4003,7 @@ more:
|
|||||||
|
|
||||||
dkey.mv_size = NODEDSZ(leaf);
|
dkey.mv_size = NODEDSZ(leaf);
|
||||||
dkey.mv_data = NODEDATA(leaf);
|
dkey.mv_data = NODEDATA(leaf);
|
||||||
#if UINT_MAX > SIZE_MAX
|
#if UINT_MAX < SIZE_MAX
|
||||||
if (mc->mc_dbx->md_dcmp == mdb_cmp_int && dkey.mv_size == sizeof(size_t))
|
if (mc->mc_dbx->md_dcmp == mdb_cmp_int && dkey.mv_size == sizeof(size_t))
|
||||||
#ifdef MISALIGNED_OK
|
#ifdef MISALIGNED_OK
|
||||||
mc->mc_dbx->md_dcmp = mdb_cmp_long;
|
mc->mc_dbx->md_dcmp = mdb_cmp_long;
|
||||||
@ -4673,7 +4673,7 @@ mdb_xcursor_init1(MDB_cursor *mc, MDB_node *node)
|
|||||||
DB_DIRTY : 0;
|
DB_DIRTY : 0;
|
||||||
mx->mx_dbx.md_name.mv_data = NODEKEY(node);
|
mx->mx_dbx.md_name.mv_data = NODEKEY(node);
|
||||||
mx->mx_dbx.md_name.mv_size = node->mn_ksize;
|
mx->mx_dbx.md_name.mv_size = node->mn_ksize;
|
||||||
#if UINT_MAX > SIZE_MAX
|
#if UINT_MAX < SIZE_MAX
|
||||||
if (mx->mx_dbx.md_cmp == mdb_cmp_int && mx->mx_db.md_pad == sizeof(size_t))
|
if (mx->mx_dbx.md_cmp == mdb_cmp_int && mx->mx_db.md_pad == sizeof(size_t))
|
||||||
#ifdef MISALIGNED_OK
|
#ifdef MISALIGNED_OK
|
||||||
mx->mx_dbx.md_cmp = mdb_cmp_long;
|
mx->mx_dbx.md_cmp = mdb_cmp_long;
|
||||||
|
Loading…
Reference in New Issue
Block a user