802.15.4: fix various length checks and other issues.
authorGuy Harris <gharris@sonic.net>
Tue, 16 Nov 2021 07:42:04 +0000 (23:42 -0800)
committerGuy Harris <gharris@sonic.net>
Tue, 16 Nov 2021 07:42:04 +0000 (23:42 -0800)
commit963451ed93743db63992d17ba6b0c626c32e954d
tree3722730e4d978228d7caf0d126d3e9a620085326
parent913a9fa71293ce12b3c1dea3d93d3a97cf685625
802.15.4: fix various length checks and other issues.

Fix some length checks done before subtracting from a length value to
test whether the length value is < the full amount to be subtracted from
it, not just part of that amount.

Add some such checks where they were needed but not present.

Make some values unsigned if they're never negative.

This should fix some issues detected by undefined-behavior sanitizers.
print-802_15_4.c