mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
cppcheck null pointer dereference
This commit is contained in:
parent
8772edb6b8
commit
b9e0b57cd8
1 changed files with 3 additions and 1 deletions
|
@ -555,7 +555,9 @@ void memcpy_filter_emoji(void *dest, const void *src, size_t n, emojiMode_t mode
|
|||
}
|
||||
}
|
||||
}
|
||||
memcpy(rdest + si, current_token, current_token_length);
|
||||
if (current_token_length > 0) {
|
||||
memcpy(rdest + si, current_token, current_token_length);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue