redis/tests/integration
debing.sun 4eda670de9
Fix infinite loop during reverse iteration due to invalid numfields of corrupted stream (#14472)
Follow https://github.com/redis/redis/pull/14423

In https://github.com/redis/redis/pull/14423,
I thought the last lpNext operation of the iterator occurred at the end
of streamIteratorGetID.
However, I overlooked the fact that after calling
`streamIteratorGetID()`, we might still use `streamIteratorGetField()`
to continue moving within the current entry.
This means that during reverse iteration, the iterator could move back
to a previous entry position.

To fix this, in this PR I record the current position at the beginning
of streamIteratorGetID().
When we enter it again next time, we ensure that the entry position does
not exceed the previous one,
that is, during forward iteration the entry must be greater than the
last entry position,
and during reverse iteration it must be smaller than the last entry
position.

Note that the fix for https://github.com/redis/redis/pull/14423 has been
replaced by this fix.
2026-01-05 21:16:53 +08:00
..
aof-multi-part.tcl AOF offset info (#13773) 2025-02-13 17:31:40 +08:00
aof-race.tcl Stabilization and improvements around aof tests (#12626) 2023-10-02 08:20:53 +03:00
aof.tcl Fixes an issue where EXEC checks ACL during AOF loading (#14545) 2025-11-22 11:52:31 +08:00
block-repl.tcl Attempt to solve MacOS CI issues in GH Actions (#12013) 2023-04-12 09:19:21 +03:00
convert-ziplist-hash-on-load.tcl Replace all usage of ziplist with listpack for t_hash (#8887) 2021-08-10 09:18:49 +03:00
convert-ziplist-zset-on-load.tcl Replace all usage of ziplist with listpack for t_zset (#9366) 2021-09-09 18:18:53 +03:00
convert-zipmap-hash-on-load.tcl Replace all usage of ziplist with listpack for t_hash (#8887) 2021-08-10 09:18:49 +03:00
corrupt-dump-fuzzer.tcl [Vector sets] RDB IO errors handling (#13978) 2025-05-07 21:49:00 +03:00
corrupt-dump.tcl Fix infinite loop during reverse iteration due to invalid numfields of corrupted stream (#14472) 2026-01-05 21:16:53 +08:00
dismiss-mem.tcl Stabilize tcl test cases (#13829) 2025-02-25 16:31:53 +08:00
failover.tcl solve race conditions in tests (#13433) 2024-07-22 10:11:56 +03:00
logging.tcl Hide user data from log (#13400) 2024-07-09 18:54:18 +08:00
psync2-master-restart.tcl HFE to support AOF and replicas (#13285) 2024-05-29 19:47:48 +08:00
psync2-pingoff.tcl Fix race condition in psync2-pingoff test (#9712) 2021-11-01 16:07:08 +02:00
psync2-reg.tcl Improve test suite to handle external servers better. (#9033) 2021-06-09 15:13:24 +03:00
psync2.tcl Tests: Do not save an RDB by default and add a SIGTERM default AOFRW test (#12064) 2023-04-18 16:14:26 +03:00
rdb.tcl Add rdb_consecutive_write_failures metric (#14493) 2025-10-31 14:03:40 +08:00
redis-benchmark.tcl redis-benchmark - add the support for binary strings (#9414) 2023-09-02 15:37:04 +03:00
redis-cli.tcl Redis-cli gets RDB by RDB channel (#13809) 2025-05-08 08:47:29 +08:00
replication-2.tcl Attempt to solve MacOS CI issues in GH Actions (#12013) 2023-04-12 09:19:21 +03:00
replication-3.tcl Introduce DEBUG_DEFRAG compilation option to allow run test with activedefrag when allocator is not jemalloc (#14326) 2025-09-10 12:52:20 +08:00
replication-4.tcl optimize spopwithcount propagation (#12082) 2023-05-22 10:27:14 +03:00
replication-buffer.tcl Introduce DEBUG_DEFRAG compilation option to allow run test with activedefrag when allocator is not jemalloc (#14326) 2025-09-10 12:52:20 +08:00
replication-psync.tcl Introduce flushdb option for repl-diskless-load (#14596) 2025-12-15 11:25:53 +08:00
replication-rdbchannel.tcl Introduce DEBUG_DEFRAG compilation option to allow run test with activedefrag when allocator is not jemalloc (#14326) 2025-09-10 12:52:20 +08:00
replication.tcl Introduce flushdb option for repl-diskless-load (#14596) 2025-12-15 11:25:53 +08:00
shutdown.tcl Fix shutdown blocked client not being properly reset after shutdown cancellation (#14420) 2025-10-15 14:13:40 +08:00