redict/tests/unit/moduleapi
sundb 6dd213558b
Fix crash due to to reuse iterator entry after list deletion in module (#11383)
In the module, we will reuse the list iterator entry for RM_ListDelete, but `listTypeDelete` will only update
`quicklistEntry->zi` but not `quicklistEntry->node`, which will result in `quicklistEntry->node` pointing to
a freed memory address if the quicklist node is deleted. 

This PR sync `key->u.list.index` and `key->u.list.entry` to list iterator after `RM_ListDelete`.

This PR also optimizes the release code of the original list iterator.

Co-authored-by: Viktor Söderqvist <viktor@zuiderkwast.se>
2022-10-22 20:36:50 +03:00
..
aclcheck.tcl Unify ACL failure error messaging. (#11160) 2022-10-16 09:01:37 +03:00
auth.tcl
basics.tcl Fix crash on RM_Call inside module load (#11346) 2022-10-12 13:09:51 +03:00
blockedclient.tcl Fix crash on RM_Call with script mode. (#10886) 2022-06-21 10:01:13 +03:00
blockonbackground.tcl
blockonkeys.tcl Blocked module clients should be aware when a key is deleted (#11310) 2022-10-18 19:50:02 +03:00
cluster.tcl Fix wrong replication on cluster slotmap changes with module KSN propagation (#11377) 2022-10-16 08:30:01 +03:00
cmdintrospection.tcl Fix memory leak in moduleFreeCommand (#11147) 2022-08-18 12:36:01 +03:00
commandfilter.tcl
datatype2.tcl
datatype.tcl
defrag.tcl
eventloop.tcl
fork.tcl
getchannels.tcl
getkeys.tcl Unify ACL failure error messaging. (#11160) 2022-10-16 09:01:37 +03:00
hash.tcl
hooks.tcl
infotest.tcl Fix missing sections for INFO ALL with module (#11291) 2022-09-21 08:10:03 +03:00
infra.tcl Build TLS as a loadable module 2022-08-23 12:37:56 +03:00
keyspace_events.tcl
keyspecs.tcl Unify ACL failure error messaging. (#11160) 2022-10-16 09:01:37 +03:00
list.tcl Fix crash due to to reuse iterator entry after list deletion in module (#11383) 2022-10-22 20:36:50 +03:00
mallocsize.tcl
misc.tcl Unify ACL failure error messaging. (#11160) 2022-10-16 09:01:37 +03:00
moduleconfigs.tcl Build TLS as a loadable module 2022-08-23 12:37:56 +03:00
propagate.tcl Reverts most of the changes of #10969 (#11178) 2022-08-24 12:51:36 +03:00
publish.tcl
reply.tcl
scan.tcl
stream.tcl
subcommands.tcl
test_lazyfree.tcl
testrdb.tcl Avoid saving module aux on RDB if no aux data was saved by the module. (#11374) 2022-10-18 19:45:46 +03:00
timer.tcl
usercall.tcl Unify ACL failure error messaging. (#11160) 2022-10-16 09:01:37 +03:00
zset.tcl