prohibit 0-sized log entries.
This commit is contained in:
parent
8bb7e37baf
commit
7d07a7f65d
1 changed files with 1 additions and 1 deletions
|
@ -1085,7 +1085,7 @@ cfs_coffee_configure_log(const char *file, unsigned log_size, unsigned log_entry
|
||||||
coffee_page_t page;
|
coffee_page_t page;
|
||||||
struct file_header hdr;
|
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;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue