提交 6e478ec8 编写于 作者: A Akos Vandra 提交者: antirez

Fixed possible buffer overflow bug if RDB file is corrupted.

(Note: commit message modified by @antirez for clarity).
上级 c0eaac95
......@@ -410,7 +410,7 @@ int rdbSaveDoubleValue(rio *rdb, double val) {
/* For information about double serialization check rdbSaveDoubleValue() */
int rdbLoadDoubleValue(rio *rdb, double *val) {
char buf[128];
char buf[256];
unsigned char len;
if (rioRead(rdb,&len,1) == 0) return -1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册