key = g_string_sized_new (klen);
g_string_append (key, session->backend->redis_object);
g_string_append_len (key, cmd->digest, sizeof (cmd->digest));
- value = g_string_sized_new (30);
+ value = g_string_sized_new (sizeof ("4294967296"));
rspamd_printf_gstring (value, "%d", cmd->flag);
session->argv[cur_shift] = g_strdup ("HSET");
session->argv_lens[cur_shift++] = sizeof ("HSET") - 1;
key = g_string_sized_new (klen);
g_string_append (key, session->backend->redis_object);
g_string_append_len (key, cmd->digest, sizeof (cmd->digest));
- value = g_string_sized_new (30);
+ value = g_string_sized_new (sizeof ("18446744073709551616"));
rspamd_printf_gstring (value, "%L", (gint64)rspamd_get_calendar_ticks ());
session->argv[cur_shift] = g_strdup ("HSETNX");
session->argv_lens[cur_shift++] = sizeof ("HSETNX") - 1;
key = g_string_sized_new (klen);
g_string_append (key, session->backend->redis_object);
g_string_append_len (key, cmd->digest, sizeof (cmd->digest));
- value = g_string_sized_new (30);
+ value = g_string_sized_new (sizeof ("4294967296"));
rspamd_printf_gstring (value, "%d", cmd->value);
session->argv[cur_shift] = g_strdup ("HINCRBY");
session->argv_lens[cur_shift++] = sizeof ("HINCRBY") - 1;
key = g_string_sized_new (klen);
g_string_append (key, session->backend->redis_object);
g_string_append_len (key, cmd->digest, sizeof (cmd->digest));
- value = g_string_sized_new (30);
+ value = g_string_sized_new (sizeof ("4294967296"));
rspamd_printf_gstring (value, "%d",
(gint)rspamd_fuzzy_backend_get_expire (bk));
session->argv[cur_shift] = g_strdup ("EXPIRE");
key = g_string_sized_new (klen);
g_string_append (key, session->backend->redis_object);
g_string_append_len (key, cmd->digest, sizeof (cmd->digest));
- value = g_string_sized_new (30);
+ value = g_string_sized_new (sizeof ("4294967296"));
rspamd_printf_gstring (value, "%d",
(gint)rspamd_fuzzy_backend_get_expire (bk));
session->argv[cur_shift] = g_strdup ("EXPIRE");
session->backend->redis_object,
i,
io_cmd->cmd.shingle.sgl.hashes[i]);
- value = g_string_sized_new (30);
+ value = g_string_sized_new (sizeof ("4294967296"));
rspamd_printf_gstring (value, "%d",
(gint)rspamd_fuzzy_backend_get_expire (bk));
hval = g_malloc (sizeof (io_cmd->cmd.shingle.basic.digest));
session->backend->redis_object,
i,
io_cmd->cmd.shingle.sgl.hashes[i]);
- value = g_string_sized_new (30);
+ value = g_string_sized_new (sizeof ("18446744073709551616"));
rspamd_printf_gstring (value, "%d",
(gint)rspamd_fuzzy_backend_get_expire (bk));
session->argv[cur_shift] = g_strdup ("EXPIRE");