mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
Fix off-by-one pointer error. Garbage byte between uuid and csn in slog_entry.
This commit is contained in:
parent
4148ddc31f
commit
a3f3143cc5
@ -1180,10 +1180,10 @@ syncprov_add_slog( Operation *op, struct berval *csn )
|
||||
se->se_tag = op->o_tag;
|
||||
|
||||
se->se_uuid.bv_val = (char *)(se+1);
|
||||
se->se_csn.bv_val = se->se_uuid.bv_val + opc->suuid.bv_len + 1;
|
||||
AC_MEMCPY( se->se_uuid.bv_val, opc->suuid.bv_val, opc->suuid.bv_len );
|
||||
se->se_uuid.bv_len = opc->suuid.bv_len;
|
||||
|
||||
se->se_csn.bv_val = se->se_uuid.bv_val + opc->suuid.bv_len;
|
||||
AC_MEMCPY( se->se_csn.bv_val, csn->bv_val, csn->bv_len );
|
||||
se->se_csn.bv_val[csn->bv_len] = '\0';
|
||||
se->se_csn.bv_len = csn->bv_len;
|
||||
|
Loading…
Reference in New Issue
Block a user