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
fix container-tag
[it/test.git]
/
simulators
/
e2sim
/
test
/
Misc
/
test_asn1c.cpp
diff --git
a/simulators/e2sim/test/Misc/test_asn1c.cpp
b/simulators/e2sim/test/Misc/test_asn1c.cpp
index
d10273c
..
690f767
100644
(file)
--- a/
simulators/e2sim/test/Misc/test_asn1c.cpp
+++ b/
simulators/e2sim/test/Misc/test_asn1c.cpp
@@
-59,7
+59,7
@@
int main(int argc, char* argv[]){
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)
);
/* Test decoding */
E2AP_PDU_t* pdu1 = new E2AP_PDU_t();
/* Test decoding */
E2AP_PDU_t* pdu1 = new E2AP_PDU_t();