mirror of
https://gitee.com/openharmony/security_huks
synced 2024-11-23 06:41:12 +00:00
commit
7c95a82b9e
@ -29,7 +29,8 @@ namespace Hks {
|
||||
|
||||
int DoSomethingInterestingWithMyAPI(uint8_t *data, size_t size)
|
||||
{
|
||||
if (data == nullptr || size < sizeof(uint64_t)) {
|
||||
(void)size;
|
||||
if (data == nullptr) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -29,7 +29,8 @@ namespace Hks {
|
||||
|
||||
int DoSomethingInterestingWithMyAPI(uint8_t *data, size_t size)
|
||||
{
|
||||
if (data == nullptr || size < sizeof(uint32_t)) {
|
||||
(void)size;
|
||||
if (data == nullptr) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user