Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-2991

Coverity issue 1365198

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • WT2.9.0, 3.2.11, 3.4.0-rc3
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage 2016-10-31

      From coverity;

      >>>     CID 1365198:    (REVERSE_INULL)
      >>>     Null-checking "zs" suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
      374     err:    if (zs != NULL &&
      375                 (tret = deflateEnd(zs)) != Z_OK && tret != Z_DATA_ERROR)
      376                     ret = zlib_error(compressor, session, "deflateEnd", tret);
      377             if (last_zs != NULL &&
      378                 (tret = deflateEnd(last_zs)) != Z_OK && tret != Z_DATA_ERROR)
      379                     ret = zlib_error(compressor, session, "deflateEnd", tret);
      /ext/compressors/zlib/zlib_compress.c: 374 in zlib_compress_raw()
      368                                 compressor, session, "deflate end block", ret);
      369                             goto err;
      370                     }
      371                     ret = 0;
      372             }
      373
      

            Assignee:
            david.hows David Hows
            Reporter:
            david.hows David Hows
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: