sanity check on configure_log parameters

This commit is contained in:
nvt-se 2008-10-15 13:57:30 +00:00
parent acfe78a51a
commit ccd492f687

View File

@ -1074,6 +1074,10 @@ cfs_coffee_configure_log(const char *file, unsigned log_size, unsigned log_entry
coffee_page_t page;
struct file_header hdr;
if(log_entry_size > COFFEE_PAGE_SIZE || log_size < log_entry_size) {
return -1;
}
page = find_file(file);
if(page < 0) {
return -1;