• Dridi Boukelmoune's avatar
    Protect the CLEAR_HASH macro from zlib · ea111153
    Dridi Boukelmoune authored
    Spotted by Coverity:
    
        /lib/libvgz/deflate.c: 605 in deflateParams()
        599     }
        600     if (s->level != level) {
        601         if (s->level == 0 && s->matches != 0) {
        602             if (s->matches == 1)
        603                 slide_hash(s);
        604             else
        >>> CID 1401053:  Control flow issues  (NESTING_INDENT_MISMATCH)
        >>> The macro on this line expands into multiple statements, only
        >>> the first of which is nested within the preceding parent while
        >>> the rest are not.
        605                 CLEAR_HASH(s);
        606             s->matches = 0;
        607         }
        608         s->level = level;
        609         s->max_lazy_match   = configuration_table[level].max_lazy;
        610         s->good_match       = configuration_table[level].good_length;
    ea111153
Name
Last commit
Last update
..
libvarnish Loading commit data...
libvarnishapi Loading commit data...
libvcc Loading commit data...
libvgz Loading commit data...
libvmod_debug Loading commit data...
libvmod_directors Loading commit data...
libvmod_std Loading commit data...
Makefile.am Loading commit data...
Makefile.phk Loading commit data...
flint.lnt Loading commit data...