mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-25 07:28:41 +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;
|
||||
}
|
||||
|
||||
if (hdr.command > array_size(zserv_handlers)
|
||||
if (hdr.command >= array_size(zserv_handlers)
|
||||
|| zserv_handlers[hdr.command] == NULL)
|
||||
zlog_info("Zebra received unknown command %d", hdr.command);
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user