mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-06 21:51:30 +00:00
core/fifo: check array index read before dereferencing uwsgi_master_fifo_manage
Reported by Coverity as CID #1100821
This commit is contained in:
@@ -114,6 +114,11 @@ int uwsgi_master_fifo_manage(int fd) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
if ((int)cmd < 0) {
|
||||
uwsgi_error("invalid cmd read in uwsgi_master_fifo_manage");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
if (uwsgi_fifo_table[(int) cmd]) {
|
||||
uwsgi_fifo_table[(int) cmd](0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user