!1438 【分布式DB】Fuzz用例中加上data的使用

Merge pull request !1438 from holding/master
This commit is contained in:
openharmony_ci 2024-11-22 02:19:56 +00:00 committed by Gitee
commit 14755f52e6
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);