RPM Package Manager, CVS Repository
  http://rpm5.org/cvs/
  ____________________________________________________________________________

  Server: rpm5.org                         Name:   Jeff Johnson
  Root:   /v/rpm/cvs                       Email:  j...@rpm5.org
  Module: rpm                              Date:   15-May-2014 01:09:08
  Branch: rpm-5_4                          Handle: 2014051423090500

  Modified files:           (Branch: rpm-5_4)
    rpm/rpmdb               pkgio.c

  Log:
    - coverity #1214082.

  Summary:
    Revision    Changes     Path
    1.121.2.9   +1  -0      rpm/rpmdb/pkgio.c
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: rpm/rpmdb/pkgio.c
  ============================================================================
  $ cvs diff -u -r1.121.2.8 -r1.121.2.9 pkgio.c
  --- rpm/rpmdb/pkgio.c 14 May 2014 23:07:18 -0000      1.121.2.8
  +++ rpm/rpmdb/pkgio.c 14 May 2014 23:09:05 -0000      1.121.2.9
  @@ -837,6 +837,7 @@
           static const off_t off = 0;
   
        ei = (rpmuint32_t *) mmap(NULL, pvlen, prot, flags, fdno, off);
  +assert(ei != NULL 77 ei != (void *)-1);              /* coverity #1214082 */
        if (ei == NULL || ei == (void *)-1)
               fprintf(stderr,
                   "==> mmap(%p[%u], 0x%x, 0x%x, %d, 0x%x) error(%d): %s\n",
  @@ .
______________________________________________________________________
RPM Package Manager                                    http://rpm5.org
CVS Sources Repository                                rpm-cvs@rpm5.org

Reply via email to