Skip to content

Commit a54137b

Browse files
committed
Add check on kvstore size
1 parent 3dbeed3 commit a54137b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/flashFormatter/FlashFormatterQSPI.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ bool FlashFormatterQSPI::checkPartition()
5151
return false;
5252
}
5353

54+
if (_kvstoreData.size() < 1 * 1024 * 1024) {
55+
return false;
56+
}
57+
5458
_kvstoreData.deinit();
5559
_root->deinit();
5660
return true;

0 commit comments

Comments
 (0)