• perryitay's avatar
    Fix crashes when list-compress-depth is used. (#9779) · 0c10f0e1
    perryitay authored
    Recently we started using list-compress-depth in tests (was completely untested till now).
    Turns this triggered test failures with the external mode, since the tests left the setting enabled
    and then it was used in other tests (specifically the fuzzer named "Stress tester for #3343-alike bugs").
    
    This PR fixes the issue of the `recompress` flag being left set by mistake, which caused the code to
    later to compress the head or tail nodes (which should never be compressed)
    
    The solution is to reset the recompress flag when it should have been (when it was decided not to compress).
    
    Additionally we're adding some assertions and improve the tests so in order to catch other similar bugs.
    0c10f0e1
quicklist.c 121 KB