mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 10:51:54 -04:00
Verify the number of splits
This commit is contained in:
parent
9d7dcdd479
commit
b428cd80cc
1 changed files with 8 additions and 0 deletions
|
|
@ -3088,6 +3088,14 @@ static void state_read_content(struct snapraid_state* state, const char* path, S
|
|||
/* LCOV_EXCL_STOP */
|
||||
}
|
||||
|
||||
if (v_split_mac > SPLIT_MAX) {
|
||||
/* LCOV_EXCL_START */
|
||||
decoding_error(path, f);
|
||||
log_fatal(ECONTENT, "Too many splits '%u' in the content file!\n", v_split_mac);
|
||||
exit(EXIT_FAILURE);
|
||||
/* LCOV_EXCL_STOP */
|
||||
}
|
||||
|
||||
if (v_level >= LEV_MAX) {
|
||||
/* LCOV_EXCL_START */
|
||||
decoding_error(path, f);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue