mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
prohibit 0-sized log entries.
This commit is contained in:
parent
8bb7e37baf
commit
7d07a7f65d
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user