Unverified Commit aba70df4 authored by guoxiang1996's avatar guoxiang1996 Committed by GitHub
Browse files

insufficient size for cached client flags in call() (#9783)

The client flags is a 64 bit integer, but the temporary cached value on the stack of call() is 32 bit.
luckily this doesn't lead to any bugs since the only flags used against this variables are below 32 bit.
parent e968d9ac
......@@ -4897,7 +4897,7 @@ void slowlogPushCurrentCommand(client *c, struct redisCommand *cmd, ustime_t dur
void call(client *c, int flags) {
long long dirty;
monotime call_timer;
int client_old_flags = c->flags;
uint64_t client_old_flags = c->flags;
struct redisCommand *real_cmd = c->cmd;
static long long prev_err_count;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment