mirror of
https://github.com/openharmony/resourceschedule_soc_perf.git
synced 2026-06-30 21:38:01 -04:00
resolve code style violations in socperfclient fuzzer test
Signed-off-by: sbw2025 <subw3@mail2.sysu.edu.cn>
This commit is contained in:
@@ -87,7 +87,9 @@ T ExtractValue(const uint8_t* data, size_t size, size_t& offset)
|
||||
return T{};
|
||||
}
|
||||
T value;
|
||||
memcpy_s(&value, sizeof(T), data + offset, sizeof(T));
|
||||
if (memcpy_s(&value, sizeof(T), data + offset, sizeof(T)) != EOK) {
|
||||
return T{};
|
||||
}
|
||||
offset += sizeof(T);
|
||||
return value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user