"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/integration/corrupt-dump-fuzzer.tcl" between
redis-6.2-rc3.tar.gz and redis-6.2.0.tar.gz

About: redis is an advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets.

corrupt-dump-fuzzer.tcl  (redis-6.2-rc3):corrupt-dump-fuzzer.tcl  (redis-6.2.0)
skipping to change at line 74 skipping to change at line 74
# valgrind will make sure there were no leaks in the rdb loader error handling c ode # valgrind will make sure there were no leaks in the rdb loader error handling c ode
foreach sanitize_dump {no yes} { foreach sanitize_dump {no yes} {
if {$::accurate} { if {$::accurate} {
set min_duration [expr {60 * 10}] ;# run at least 10 minutes set min_duration [expr {60 * 10}] ;# run at least 10 minutes
set min_cycles 1000 ;# run at least 1k cycles (max 16 minutes) set min_cycles 1000 ;# run at least 1k cycles (max 16 minutes)
} else { } else {
set min_duration 10 ; # run at least 10 seconds set min_duration 10 ; # run at least 10 seconds
set min_cycles 10 ; # run at least 10 cycles set min_cycles 10 ; # run at least 10 cycles
} }
# Don't execute this on FreeBSD due to a yet-undiscovered memory issue
# which causes tclsh to bloat.
if {[exec uname] == "FreeBSD"} {
set min_cycles 1
set min_duration 1
}
test "Fuzzer corrupt restore payloads - sanitize_dump: $sanitize_dump" { test "Fuzzer corrupt restore payloads - sanitize_dump: $sanitize_dump" {
if {$min_duration * 2 > $::timeout} { if {$min_duration * 2 > $::timeout} {
fail "insufficient timeout" fail "insufficient timeout"
} }
# start a server, fill with data and save an RDB file once (avoid re-sav e) # start a server, fill with data and save an RDB file once (avoid re-sav e)
start_server [list overrides [list "save" "" use-exit-on-panic yes crash -memcheck-enabled no loglevel verbose] ] { start_server [list overrides [list "save" "" use-exit-on-panic yes crash -memcheck-enabled no loglevel verbose] ] {
set stdout [srv 0 stdout] set stdout [srv 0 stdout]
r config set sanitize-dump-payload $sanitize_dump r config set sanitize-dump-payload $sanitize_dump
r debug set-skip-checksum-validation 1 r debug set-skip-checksum-validation 1
set start_time [clock seconds] set start_time [clock seconds]
 End of changes. 1 change blocks. 
0 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)