mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 22:03:42 -07: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. */
|
allocated. */
|
||||||
|
|
||||||
size_t len = strlen(key);
|
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 */
|
/* Avoid an overflow if the key is very long */
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue