Merge pull request #709 from BRTSG-FOSS/hotfix/tests-buffer-overflow

Fix buffer overflow in tests when using a large block size
This commit is contained in:
Christopher Haster
2022-11-10 10:31:21 -06:00
committed by GitHub
+1 -1
View File
@@ -93,7 +93,7 @@ PROLOGUE = """
__attribute__((unused)) lfs_dir_t dir;
__attribute__((unused)) struct lfs_info info;
__attribute__((unused)) char path[1024];
__attribute__((unused)) uint8_t buffer[1024];
__attribute__((unused)) uint8_t buffer[(1024 > LFS_BLOCK_SIZE * 4) ? (1024) : (LFS_BLOCK_SIZE * 4)];
__attribute__((unused)) lfs_size_t size;
__attribute__((unused)) int err;