Bugfix/codeql initial fixes (#195)

* Fix to BVLC6 bounds checking

* Convert MSTP capture to use datetime library

* Convert timesync app to use datetime and mstimer library

* fix workflow per warning

* fix BSD mstimer init function name

Co-authored-by: Steve Karg <skarg@users.sourceforge.net>
This commit is contained in:
Steve Karg
2021-09-17 09:21:26 -05:00
committed by GitHub
parent 63a8735fa7
commit eff691aedd
6 changed files with 25 additions and 41 deletions
+1 -1
View File
@@ -297,7 +297,7 @@ int bvlc6_encode_original_broadcast(uint8_t *pdu,
pdu, pdu_size, BVLC6_ORIGINAL_BROADCAST_NPDU, length);
if (bytes_encoded == 4) {
encode_unsigned24(&pdu[4], vmac);
if (npdu && length) {
if (npdu && npdu_len) {
for (i = 0; i < npdu_len; i++) {
pdu[7 + i] = npdu[i];
}