mirror of
https://gitee.com/openharmony/distributeddatamgr_kv_store
synced 2024-11-26 19:51:20 +00:00
!1438 【分布式DB】Fuzz用例中加上data的使用
Merge pull request !1438 from holding/master
This commit is contained in:
commit
14755f52e6
@ -1567,7 +1567,7 @@ void DbFlushFuzz(const uint8_t *data, size_t size)
|
||||
{
|
||||
GRD_DB *db = nullptr;
|
||||
GRD_DB *db2 = nullptr;
|
||||
const uint32_t flags = reinterpret_cast<const uint32_t>(data);
|
||||
const uint32_t flags = *reinterpret_cast<const uint32_t *>(data);
|
||||
int ret = GRD_DBOpen(TEST_DB_FILE, CONFIG_STR, GRD_DB_OPEN_CREATE, &db);
|
||||
if (ret == GRD_OK) {
|
||||
GRD_Flush(db, flags);
|
||||
|
@ -1576,7 +1576,7 @@ void DbFlushFuzz(const uint8_t *data, size_t size)
|
||||
{
|
||||
GRD_DB *db = nullptr;
|
||||
GRD_DB *db2 = nullptr;
|
||||
const uint32_t flags = reinterpret_cast<const uint32_t>(data);
|
||||
const uint32_t flags = *reinterpret_cast<const uint32_t *>(data);
|
||||
int ret = GRD_DBOpenInner(TEST_DB_FILE, CONFIG_STR, GRD_DB_OPEN_CREATE, &db);
|
||||
if (ret == GRD_OK) {
|
||||
GRD_FlushInner(db, flags);
|
||||
|
Loading…
Reference in New Issue
Block a user