mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-27 23:41:18 +01:00
fix prevent possible access above array boardes
This commit is contained in:
parent
04aa86f8ec
commit
dea48c84c1
@ -131,7 +131,7 @@ uint8_t ipv6_register_packet_handler(int pid)
|
||||
{
|
||||
uint8_t i;
|
||||
|
||||
for (i = 0; ((sixlowip_reg[i] != pid) && (i < SIXLOWIP_MAX_REGISTERED) &&
|
||||
for (i = 0; ((i < SIXLOWIP_MAX_REGISTERED) && (sixlowip_reg[i] != pid) &&
|
||||
(sixlowip_reg[i] != 0)); i++) {
|
||||
;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user