mirror of https://mirror.osredm.com/root/redis.git
Crash report: Use more chars for argv (#13413)
128 is not enough chars when we're talking about commands like RESTORE. Of course, it's impossible to find the perfect number, but 1024 is better than 128, and it's not obscenely large.
This commit is contained in:
parent
d39548c854
commit
b10e19e3d6
|
@ -2071,7 +2071,7 @@ void logCurrentClient(client *cc, const char *title) {
|
|||
}
|
||||
robj *decoded;
|
||||
decoded = getDecodedObject(cc->argv[j]);
|
||||
sds repr = sdscatrepr(sdsempty(),decoded->ptr, min(sdslen(decoded->ptr), 128));
|
||||
sds repr = sdscatrepr(sdsempty(),decoded->ptr, min(sdslen(decoded->ptr), 1024));
|
||||
serverLog(LL_WARNING|LL_RAW,"argv[%d]: '%s'\n", j, (char*)repr);
|
||||
if (!strcasecmp(decoded->ptr, "auth") || !strcasecmp(decoded->ptr, "auth2")) {
|
||||
sdsfree(repr);
|
||||
|
|
Loading…
Reference in New Issue