mbed-os/features/lorawan/lorastack
Hasnain Virk 726eff9305 Proper size checking for link ADR commands
In a specific branch path 'adr_settings' in link_adr_request() API, the
structure adr_settings of type link_adr_params_t will be rendered
uninitialized. To prevent this we initialize the construct as zero.
In addition to that, to handle the case properly we should check for the
command identifier and the command payload length anticipating contiguous
blocks of adr commands. If we find a discrepency in size, we should
abort.
2019-02-14 17:15:42 +02:00
..
mac Proper size checking for link ADR commands 2019-02-14 17:15:42 +02:00
phy Proper size checking for link ADR commands 2019-02-14 17:15:42 +02:00