struct ntfsv_read_next_req_t has only 9 bytes but reserve space
take up 10 bytes.
solution is add a valid byte into uba space.
---
src/ntf/common/ntfsv_enc_dec.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/ntf/common/ntfsv_enc_dec.c b/src/ntf/common/ntfsv_enc_dec.c
index 5cecabf01..5b3cd6e75 100644
--- a/src/ntf/common/ntfsv_enc_dec.c
+++ b/src/ntf/common/ntfsv_enc_dec.c
@@ -2239,6 +2239,7 @@ uint32_t ntfsv_enc_read_next_msg(NCS_UBAID *uba,
ntfsv_read_next_req_t *param)
ncs_encode_32bit(&p8, param->client_id);
ncs_encode_8bit(&p8, param->searchDirection);
ncs_encode_32bit(&p8, param->readerId);
+ ncs_encode_8bit(&p8, param->searchDirection);
ncs_enc_claim_space(uba, 10);
TRACE_LEAVE();
--
2.38.1
_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel