mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-27 17:43:07 +08:00
style
This commit is contained in:
parent
48eeceae58
commit
bd1244287f
1 changed files with 1 additions and 1 deletions
|
@ -222,7 +222,7 @@ int hashtable_set(hashtable_t *hashtable, const char *key, json_t *value) {
|
|||
allocated. */
|
||||
|
||||
size_t len = strlen(key);
|
||||
if (len >= (size_t) -1 - offsetof(pair_t, key)) {
|
||||
if (len >= (size_t) - 1 - offsetof(pair_t, key)) {
|
||||
/* Avoid an overflow if the key is very long */
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue