armink / FlashDB

An ultra-lightweight database that supports key-value and time series data | 一款支持 KV 数据和时序数据的超轻量级数据库
Apache License 2.0
1.71k stars 399 forks source link

interrupt iteraotor when read_section_info fails #251

Closed pikasTech closed 9 months ago

pikasTech commented 9 months ago

sector->status.store will be uninitialized when read_section_info fails.

log of Valgrind when read_section_info fails.

==175190== Conditional jump or move depends on uninitialised value(s)
==175190==    at 0x8B754F: check_oldest_addr_cb (fdb_kvdb.c:1666)
==175190==    by 0x8B433A: sector_iterator (fdb_kvdb.c:927)
==175190==    by 0x8B865A: fdb_kvdb_init (fdb_kvdb.c:1906)
...

image