Secured the WPM and RPM service encoders (#604)

* Secured the WPM and RPM client service encoders.

* Fixed RPM and WPM apps when fail to encode request. 

* Fixed WPM app number of arguments checking.
This commit is contained in:
Steve Karg
2024-03-26 12:29:15 -05:00
committed by GitHub
parent 31ffc8024e
commit 80c51a06e3
7 changed files with 291 additions and 180 deletions
+3 -1
View File
@@ -92,8 +92,10 @@ uint8_t Send_Write_Property_Multiple_Request(uint8_t *pdu,
/* encode the APDU portion of the packet */
len = wpm_encode_apdu(
&pdu[pdu_len], max_pdu - pdu_len, invoke_id, write_access_data);
if (len <= 0) {
return 0;
}
pdu_len += len;
/* will it fit in the sender?
note: if there is a bottleneck router in between
us and the destination, we won't know unless