corrected possible overflow in dlmstp.c for PIC and RTOS-32. Thank you Martin!
This commit is contained in:
@@ -112,7 +112,7 @@ int dlmstp_send_pdu(
|
||||
return -2;
|
||||
}
|
||||
dlmstp_get_my_address(&src);
|
||||
if ((8 /* header len */ + pdu_len) > MAX_MPDU) {
|
||||
if ((MAX_HEADER + pdu_len) > MAX_MPDU) {
|
||||
return -4;
|
||||
}
|
||||
bytes_sent =
|
||||
|
||||
Reference in New Issue
Block a user