prohibit 0-sized log entries.

This commit is contained in:
nvt-se 2008-10-16 13:17:27 +00:00
parent 8bb7e37baf
commit 7d07a7f65d

View file

@ -1085,7 +1085,7 @@ 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) {
if(log_entry_size == 0 || log_entry_size > COFFEE_PAGE_SIZE || log_size < log_entry_size) {
return -1;
}