Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
b78ac354
Commit
b78ac354
authored
Mar 18, 2019
by
antirez
Browse files
redis-check-aof: fix potential overflow.
Bug signaled by @vattezhang in PR #5940 but fixed differently.
parent
8ea906a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-check-aof.c
View file @
b78ac354
...
@@ -33,8 +33,8 @@
...
@@ -33,8 +33,8 @@
#define ERROR(...) { \
#define ERROR(...) { \
char __buf[1024]; \
char __buf[1024]; \
sprintf(__buf, __VA_ARGS__); \
s
n
printf(__buf,
sizeof(__buf),
__VA_ARGS__); \
sprintf(error, "0x%16llx: %s", (long long)epos, __buf); \
s
n
printf(error,
sizeof(error),
"0x%16llx: %s", (long long)epos, __buf); \
}
}
static
char
error
[
1024
];
static
char
error
[
1024
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment