diff options
author | Oran Agra <oran@redislabs.com> | 2018-06-19 16:54:22 +0300 |
---|---|---|
committer | Oran Agra <oran@redislabs.com> | 2018-06-19 16:54:22 +0300 |
commit | f31b0405f0023d8916efac3aa9b0c16d4db69fc4 (patch) | |
tree | 72cab0c7b35e6332b2ead9b9c131441b2baefc43 /src/rdb.h | |
parent | 44571088d8407749ca1c49cde09089664e7928ff (diff) | |
download | redis-f31b0405f0023d8916efac3aa9b0c16d4db69fc4.tar.gz |
fix redis-rdb-check to provide proper arguments to rdbLoadMillisecondTime
due to incorrect forward declaration, it didn't provide all arguments.
this lead to random value being read from the stack and return of incorrect time,
which in this case doesn't matter since no one uses it.
Diffstat (limited to 'src/rdb.h')
-rw-r--r-- | src/rdb.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -129,6 +129,8 @@ int rdbLoadType(rio *rdb); int rdbSaveTime(rio *rdb, time_t t); time_t rdbLoadTime(rio *rdb); int rdbSaveLen(rio *rdb, uint64_t len); +int rdbSaveMillisecondTime(rio *rdb, long long t); +long long rdbLoadMillisecondTime(rio *rdb, int rdbver); uint64_t rdbLoadLen(rio *rdb, int *isencoded); int rdbLoadLenByRef(rio *rdb, int *isencoded, uint64_t *lenptr); int rdbSaveObjectType(rio *rdb, robj *o); |