Code Review
/
it
/
test.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
add the XTesting for AI/ML training host deployment use case
[it/test.git]
/
simulators
/
e2sim
/
ricsim.cpp
diff --git
a/simulators/e2sim/ricsim.cpp
b/simulators/e2sim/ricsim.cpp
index
e42e9d2
..
6bdc5b6
100644
(file)
--- a/
simulators/e2sim/ricsim.cpp
+++ b/
simulators/e2sim/ricsim.cpp
@@
-38,7
+38,7
@@
void encode_and_send_sctp_data(E2AP_PDU_t* pdu, int client_fd)
sctp_buffer_t data;
data.len = e2ap_asn1c_encode_pdu(pdu, &buf);
sctp_buffer_t data;
data.len = e2ap_asn1c_encode_pdu(pdu, &buf);
- memcpy(data.buffer, buf,
data.len
);
+ memcpy(data.buffer, buf,
min(data.len, MAX_SCTP_BUFFER)
);
sctp_send_data(client_fd, data);
}
sctp_send_data(client_fd, data);
}