mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-26 04:54:44 +00:00
Merge pull request #2406 from pacovn/Coverity_1465495_Out-of-bounds_read
zebra: Out-of-bounds read (Coverity 1465495)
This commit is contained in:
commit
b4ba87ebb3
@ -3061,7 +3061,7 @@ void zserv_handle_commands(struct zserv *client, struct stream *msg)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hdr.command > array_size(zserv_handlers)
|
if (hdr.command >= array_size(zserv_handlers)
|
||||||
|| zserv_handlers[hdr.command] == NULL)
|
|| zserv_handlers[hdr.command] == NULL)
|
||||||
zlog_info("Zebra received unknown command %d", hdr.command);
|
zlog_info("Zebra received unknown command %d", hdr.command);
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user