This commit is contained in:
osboxes.org committed 2019-12-31 21:39:37 +01:00
1 parent 48eeceae58
commit bd1244287f
1 file changed
+1 -1
+1 -1
View File
@@ -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;
}