mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
integer indexing must be unsigned
This commit is contained in:
parent
3ff3957dc7
commit
dd39c0a6fd
@ -2180,6 +2180,8 @@ integerIndexer(
|
|||||||
keys[i].bv_val[0] = iv.bv_len;
|
keys[i].bv_val[0] = iv.bv_len;
|
||||||
memcpy( keys[i].bv_val+1, iv.bv_val, index_intlen );
|
memcpy( keys[i].bv_val+1, iv.bv_val, index_intlen );
|
||||||
}
|
}
|
||||||
|
/* convert signed to unsigned */
|
||||||
|
keys[i].bv_val[1] ^= 0x80;
|
||||||
}
|
}
|
||||||
*keysp = keys;
|
*keysp = keys;
|
||||||
rc = 0;
|
rc = 0;
|
||||||
@ -2245,6 +2247,9 @@ integerFilter(
|
|||||||
keys[0].bv_val[0] = iv.bv_len;
|
keys[0].bv_val[0] = iv.bv_len;
|
||||||
memcpy( keys[0].bv_val+1, iv.bv_val, index_intlen );
|
memcpy( keys[0].bv_val+1, iv.bv_val, index_intlen );
|
||||||
}
|
}
|
||||||
|
/* convert signed to unsigned */
|
||||||
|
keys[0].bv_val[1] ^= 0x80;
|
||||||
|
|
||||||
rc = 0;
|
rc = 0;
|
||||||
*keysp = keys;
|
*keysp = keys;
|
||||||
leave:
|
leave:
|
||||||
|
Loading…
Reference in New Issue
Block a user