redict/src
Gnanesh 0772098b1b
EXPIRE, EXPIREAT, SETEX, GETEX: Return error when expire time overflows (#8287)
Respond with error if expire time overflows from positive to negative of vice versa.

* `SETEX`, `SET EX`, `GETEX` etc would have already error on negative value,
but now they would also error on overflows (i.e. when the input was positive but
after the manipulation it becomes negative, which would have passed before)
* `EXPIRE` and `EXPIREAT` was ok taking negative values (would implicitly delete
the key), we keep that, but we do error if the user provided a value that changes
sign when manipulated (except the case of changing sign when `basetime` is added)

Signed-off-by: Gnanesh <gnaneshkunal@outlook.com>
Co-authored-by: Oran Agra <oran@redislabs.com>
2021-02-21 09:09:54 +02:00
..
modules More modules API ref formatting fixes (#8344) 2021-01-20 11:47:06 +02:00
.gitignore Ignore gcov/lcov artifacts 2012-04-13 17:52:33 -07:00
acl.c Moved most static strings into the shared structure (#8411) 2021-02-09 11:52:28 -08:00
adlist.c optimization src/adlist.c:listJoin() 2020-11-09 21:48:56 -08:00
adlist.h Speedup: unblock clients on keys in O(1). 2020-04-08 12:55:57 +02:00
ae_epoll.c Use FD_CLOEXEC in Sentinel, so that FDs don't leak to the scripts it runs (#8242) 2021-01-19 22:57:30 +02:00
ae_evport.c Use FD_CLOEXEC in Sentinel, so that FDs don't leak to the scripts it runs (#8242) 2021-01-19 22:57:30 +02:00
ae_kqueue.c Use FD_CLOEXEC in Sentinel, so that FDs don't leak to the scripts it runs (#8242) 2021-01-19 22:57:30 +02:00
ae_select.c Include 'fd_set' type name 2016-06-07 16:46:00 -04:00
ae.c Use FD_CLOEXEC in Sentinel, so that FDs don't leak to the scripts it runs (#8242) 2021-01-19 22:57:30 +02:00
ae.h Use H/W Monotonic clock and updates to AE (#7644) 2020-08-28 11:54:10 +03:00
anet.c Add hostname support in Sentinel. (#8282) 2021-01-28 12:09:11 +02:00
anet.h Add hostname support in Sentinel. (#8282) 2021-01-28 12:09:11 +02:00
aof.c Adds INFO fields to track fork child progress (#8414) 2021-02-16 16:06:51 +02:00
asciilogo.h string literal should be const char* 2020-03-07 19:38:27 +08:00
atomicvar.h Several (mostly Solaris-related) cleanups (#8171) 2020-12-13 17:09:54 +02:00
bio.c Cleanup key tracking documentation and table management (#8039) 2020-12-23 19:13:12 -08:00
bio.h Cleanup key tracking documentation and table management (#8039) 2020-12-23 19:13:12 -08:00
bitops.c Flow through the error handling path for most errors (#8226) 2020-12-23 19:06:25 -08:00
blocked.c Enabled background and reply time tracking on blocked on keys/blocked on background work clients (#7491) 2021-01-29 15:38:30 +02:00
childinfo.c solve valgrind warning in child_info (#8505) 2021-02-17 12:30:29 +02:00
cli_common.c Add --insecure option to command line tools. (#8416) 2021-02-07 12:36:56 +02:00
cli_common.h Add --insecure option to command line tools. (#8416) 2021-02-07 12:36:56 +02:00
cluster.c Remove redundant pubsub list to store the patterns. (#8472) 2021-02-17 14:13:50 -08:00
cluster.h Optimize performance of clusterGenNodesDescription for large clusters (#8182) 2021-01-13 12:36:03 -08:00
config.c Add proc-title-template option. (#8397) 2021-01-28 18:17:39 +02:00
config.h Solaris based system rss size report. (#8138) 2020-12-06 15:30:29 +02:00
connection.c Merge two aeDeleteFileEvent refs into one (#7521) 2020-11-25 13:37:54 -08:00
connection.h Add local address to CLIENT LIST, and a CLIENT KILL filter. (#7913) 2020-10-28 21:13:44 +02:00
connhelpers.h Conns: Fix connClose() / connAccept() behavior. 2020-03-22 14:42:03 +02:00
crc16_slottable.h Added basic support for clusters to redis-benchmark. 2019-03-01 17:53:14 +01:00
crc16.c RDMF (Redis/Disque merge friendlyness) refactoring WIP 1. 2015-07-26 15:17:18 +02:00
crc64.c Fix compile warning when define REDIS_TEST (#8261) 2021-01-09 19:52:42 +02:00
crc64.h Implemented CRC64 based on slice by 4 2020-04-24 17:00:03 -07:00
crcspeed.c Fix rdb checksum / crc64 on bigendian (#8270) 2021-01-05 09:15:10 +02:00
crcspeed.h Added crcspeed library 2020-04-24 17:11:21 -07:00
db.c Fix typo and some out of date comments (#8449) 2021-02-08 09:29:32 -08:00
debug.c HELP subcommand, continued (#5531) 2021-01-04 17:02:57 +02:00
debugmacro.h Fix some redundancy use of semicolon in do-while macros (#8221) 2020-12-21 22:57:45 -08:00
defrag.c Fix typo and some out of date comments (#8449) 2021-02-08 09:29:32 -08:00
dict.c dict: pause rehash, minor readability refactor (#8515) 2021-02-20 12:56:30 +02:00
dict.h dict: pause rehash, minor readability refactor (#8515) 2021-02-20 12:56:30 +02:00
endianconv.c Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-09-10 13:43:38 +03:00
endianconv.h Fix typo 2018-07-03 18:19:46 +02:00
evict.c Fix typo and some out of date comments (#8449) 2021-02-08 09:29:32 -08:00
expire.c EXPIRE, EXPIREAT, SETEX, GETEX: Return error when expire time overflows (#8287) 2021-02-21 09:09:54 +02:00
fmacros.h Use H/W Monotonic clock and updates to AE (#7644) 2020-08-28 11:54:10 +03:00
geo.c GEOSEARCH bybox bug fixes and new fuzzy tester (#8445) 2021-02-04 18:08:35 +02:00
geo.h RDMF (Redis/Disque merge friendlyness) refactoring WIP 1. 2015-07-26 15:17:18 +02:00
geohash_helper.c GEOSEARCH bybox bug fixes and new fuzzy tester (#8445) 2021-02-04 18:08:35 +02:00
geohash_helper.h GEOSEARCH bybox bug fixes and new fuzzy tester (#8445) 2021-02-04 18:08:35 +02:00
geohash.c FIX: truncate max/min longitude,latitude related geo_point (ex: {180, 85.05112878} ) 2020-04-09 17:48:29 +08:00
geohash.h Add GEOSEARCH / GEOSEARCHSTORE commands (#8094) 2020-12-12 02:21:05 +02:00
gopher.c Gopher: don't add the Lastline. 2019-02-24 21:38:15 +01:00
help.h update help.h with new commands (#8426) 2021-01-31 12:16:58 +02:00
hyperloglog.c Flow through the error handling path for most errors (#8226) 2020-12-23 19:06:25 -08:00
intset.c Fix compile warning when define REDIS_TEST (#8261) 2021-01-09 19:52:42 +02:00
intset.h Sanitize dump payload: validate no duplicate records in hash/zset/intset 2020-12-06 14:54:34 +02:00
latency.c HELP subcommand, continued (#5531) 2021-01-04 17:02:57 +02:00
latency.h Disable THP if enabled (#7381) 2020-10-27 15:04:18 +02:00
lazyfree.c Add lazyfree-lazy-user-flush config to control default behavior of FLUSH[ALL|DB], SCRIPT FLUSH (#8258) 2021-01-15 15:32:58 +02:00
listpack_malloc.h Optimize listpack for stream usage to avoid repeated reallocs (#6281) 2021-02-16 16:17:38 +02:00
listpack.c Optimize listpack for stream usage to avoid repeated reallocs (#6281) 2021-02-16 16:17:38 +02:00
listpack.h Optimize listpack for stream usage to avoid repeated reallocs (#6281) 2021-02-16 16:17:38 +02:00
localtime.c update leap year comment when div by 400 2018-09-18 17:04:00 +08:00
lolwut5.c Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-09-10 13:43:38 +03:00
lolwut6.c LOLWUT 6: always pick a default color sequence. 2019-10-28 11:10:58 +01:00
lolwut.c Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-09-10 13:43:38 +03:00
lolwut.h add include guard for lolwut.h 2020-05-05 23:35:08 -04:00
lzf_c.c Upgrade LZF to 3.6 (2011) from 3.5 (2009) 2015-01-02 11:16:10 -05:00
lzf_d.c Sanitize dump payload: fuzz tester and fixes for segfaults and leaks it exposed 2020-12-06 14:54:34 +02:00
lzf.h No more trailing spaces in Redis source code. 2014-06-26 18:48:40 +02:00
lzfP.h Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-09-10 13:43:38 +03:00
Makefile Fix random element selection for large hash tables. (#8133) 2020-12-23 15:52:07 +02:00
memtest.c Add support for Haiku OS (#7435) 2020-09-29 15:52:13 +03:00
mkreleasehdr.sh Update mkreleasehdr.sh 2019-11-19 17:23:47 +08:00
module.c Adds INFO fields to track fork child progress (#8414) 2021-02-16 16:06:51 +02:00
monotonic.c Use H/W Monotonic clock and updates to AE (#7644) 2020-08-28 11:54:10 +03:00
monotonic.h Use H/W Monotonic clock and updates to AE (#7644) 2020-08-28 11:54:10 +03:00
mt19937-64.c Fix random element selection for large hash tables. (#8133) 2020-12-23 15:52:07 +02:00
mt19937-64.h Fix random element selection for large hash tables. (#8133) 2020-12-23 15:52:07 +02:00
multi.c Swapdb should make transaction fail if there is any client watching keys (#8239) 2021-01-04 14:48:28 +02:00
networking.c Fix typos in comments (#8466) 2021-02-08 12:09:39 +02:00
notify.c Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-09-10 13:43:38 +03:00
object.c Moved most static strings into the shared structure (#8411) 2021-02-09 11:52:28 -08:00
pqsort.c No more trailing spaces in Redis source code. 2014-06-26 18:48:40 +02:00
pqsort.h BSD license added to every C source and header file. 2012-11-08 18:31:32 +01:00
pubsub.c Remove redundant pubsub list to store the patterns. (#8472) 2021-02-17 14:13:50 -08:00
quicklist.c Add ziplistReplace, in-place optimized for elements of same size 2021-02-16 13:01:14 +02:00
quicklist.h Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-09-10 13:43:38 +03:00
rand.c Use 'void' for zero-argument functions 2014-08-08 10:05:32 +02:00
rand.h BSD license added to every C source and header file. 2012-11-08 18:31:32 +01:00
rax_malloc.h Cluster: hash slots tracking using a radix tree. 2017-03-27 16:37:22 +02:00
rax.c Fix compile warning when define REDIS_TEST (#8261) 2021-01-09 19:52:42 +02:00
rax.h Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-09-10 13:43:38 +03:00
rdb.c Adds INFO fields to track fork child progress (#8414) 2021-02-16 16:06:51 +02:00
rdb.h Fix typo and some out of date comments (#8449) 2021-02-08 09:29:32 -08:00
redis-benchmark.c redis-benchmark: Fix broken protocol when used with -a or --dbnum (#8486) 2021-02-14 14:42:41 +02:00
redis-check-aof.c Enlarge error buffer in redis-check-aof.c to remove compiler warning of output truncation through snprintf format string 2019-05-08 12:13:45 +01:00
redis-check-rdb.c Fix random element selection for large hash tables. (#8133) 2020-12-23 15:52:07 +02:00
redis-cli.c Cleanup in redis-cli and tests: release memory on exit, change dup test name (#8475) 2021-02-09 12:36:09 +02:00
redis-trib.rb Redis-trib deprecated: it no longer works and it 2018-07-13 10:51:58 +02:00
redisassert.h Sanitize dump payload: performance optimizations and tuning 2020-12-06 14:54:34 +02:00
redismodule.h Adds INFO fields to track fork child progress (#8414) 2021-02-16 16:06:51 +02:00
release.c Speedup INFO server section. 2019-10-02 11:30:20 +02:00
replication.c Moved most static strings into the shared structure (#8411) 2021-02-09 11:52:28 -08:00
rio.c more strict check in rioConnRead (#7564) 2020-07-24 14:40:19 +08:00
rio.h diskless replication rdb transfer uses pipe, and writes to sockets form the parent process. 2019-10-07 21:06:30 +03:00
scripting.c Moved most static strings into the shared structure (#8411) 2021-02-09 11:52:28 -08:00
sds.c Add proc-title-template option. (#8397) 2021-01-28 18:17:39 +02:00
sds.h Add proc-title-template option. (#8397) 2021-01-28 18:17:39 +02:00
sdsalloc.h Sanitize dump payload: fail RESTORE if memory allocation fails 2020-12-06 14:54:34 +02:00
sentinel.c Fix duplicate replicas issue. (#8481) 2021-02-11 11:50:47 +02:00
server.c Remove redundant pubsub list to store the patterns. (#8472) 2021-02-17 14:13:50 -08:00
server.h Remove redundant pubsub list to store the patterns. (#8472) 2021-02-17 14:13:50 -08:00
setcpuaffinity.c cpu affinity: DragonFlyBSD support (#7956) 2020-10-25 14:14:05 +02:00
setproctitle.c Fix setproctitle related crashes. (#8150) 2020-12-08 11:27:30 +02:00
sha1.c sha1.c: use standard uint32_t. 2015-04-27 12:07:49 +02:00
sha1.h sha1.c: use standard uint32_t. 2015-04-27 12:07:49 +02:00
sha256.c ACL: add slightly modified version of sha256.c for password hashing. 2019-09-12 12:21:37 +02:00
sha256.h ACL: add slightly modified version of sha256.c for password hashing. 2019-09-12 12:21:37 +02:00
siphash.c Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-09-10 13:43:38 +03:00
slowlog.c HELP subcommand, continued (#5531) 2021-01-04 17:02:57 +02:00
slowlog.h Added the missed macro definition in slowlog.h 2019-12-02 00:28:41 -05:00
solarisfixes.h Check for __sun macro in solarisfixes.h, not in includers. 2015-01-09 11:23:22 +01:00
sort.c sort Command lookupKeyRead and lookupKeyWrite are used on the opposite (#8283) 2021-01-04 10:28:47 +02:00
sparkline.c Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-09-10 13:43:38 +03:00
sparkline.h LATENCY GRAPH implemented. 2014-07-02 16:31:22 +02:00
stream.h Add modules API for streams (#8288) 2021-01-28 16:19:43 +02:00
syncio.c syncWithMaster(): non blocking state machine. 2015-08-06 18:12:20 +02:00
t_hash.c Add ziplistReplace, in-place optimized for elements of same size 2021-02-16 13:01:14 +02:00
t_list.c Use stack for decoding integer-encoded values in list push 2021-02-16 13:01:14 +02:00
t_set.c Moved most static strings into the shared structure (#8411) 2021-02-09 11:52:28 -08:00
t_stream.c Optimize listpack for stream usage to avoid repeated reallocs (#6281) 2021-02-16 16:17:38 +02:00
t_string.c EXPIRE, EXPIREAT, SETEX, GETEX: Return error when expire time overflows (#8287) 2021-02-21 09:09:54 +02:00
t_zset.c Optimize HRANDFIELD and ZRANDMEMBER case 4 when ziplist encoded (#8444) 2021-02-07 16:55:11 +02:00
testhelp.h Fix some redundancy use of semicolon in do-while macros (#8221) 2020-12-21 22:57:45 -08:00
timeout.c Add missing calls to raxStop (#7532) 2020-07-21 08:13:05 +03:00
tls.c Fix typo and some out of date comments (#8449) 2021-02-08 09:29:32 -08:00
tracking.c Throw error for conflicting bcast tracking prefixes (#8176) 2021-01-08 00:00:35 -08:00
util.c Escape unsafe field name characters in INFO. (#8492) 2021-02-15 17:08:53 +02:00
util.h Escape unsafe field name characters in INFO. (#8492) 2021-02-15 17:08:53 +02:00
valgrind.sup Sanitize dump payload: fuzz tester and fixes for segfaults and leaks it exposed 2020-12-06 14:54:34 +02:00
version.h Add Module API for version and compatibility checks (#7865) 2020-10-11 17:21:58 +03:00
ziplist.c Add ziplistReplace, in-place optimized for elements of same size 2021-02-16 13:01:14 +02:00
ziplist.h Add ziplistReplace, in-place optimized for elements of same size 2021-02-16 13:01:14 +02:00
zipmap.c Sanitize dump payload: ziplist, listpack, zipmap, intset, stream 2020-12-06 14:54:34 +02:00
zipmap.h Sanitize dump payload: ziplist, listpack, zipmap, intset, stream 2020-12-06 14:54:34 +02:00
zmalloc.c Fix last COW INFO report, Skip test on non-linux platforms (#8301) 2021-01-08 23:35:30 +02:00
zmalloc.h Sanitize dump payload: fail RESTORE if memory allocation fails 2020-12-06 14:54:34 +02:00