diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/commonlib/bsd/cbfs_private.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/commonlib/bsd/cbfs_private.c b/src/commonlib/bsd/cbfs_private.c index 1642cca26a..94a29ac929 100644 --- a/src/commonlib/bsd/cbfs_private.c +++ b/src/commonlib/bsd/cbfs_private.c @@ -54,7 +54,8 @@ cb_err_t cbfs_walk(cbfs_dev_t dev, cb_err_t (*walker)(cbfs_dev_t dev, size_t off if (data_offset > sizeof(mdata) || data_length > devsize || offset + data_offset + data_length > devsize) { ERROR("File @%#zx too large\n", offset); - goto next_file; + offset += CBFS_ALIGNMENT; + continue; } if (empty && !(flags & CBFS_WALK_INCLUDE_EMPTY)) |