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:   25-Jun-2013 18:59:08
  Branch: rpm-5_4                          Handle: 2013062516590700

  Modified files:           (Branch: rpm-5_4)
    rpm/lib                 depends.c

  Log:
    - coverity #1035956

  Summary:
    Revision    Changes     Path
    1.461.4.8   +2  -1      rpm/lib/depends.c
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: rpm/lib/depends.c
  ============================================================================
  $ cvs diff -u -r1.461.4.7 -r1.461.4.8 depends.c
  --- rpm/lib/depends.c 15 Apr 2012 21:20:56 -0000      1.461.4.7
  +++ rpm/lib/depends.c 25 Jun 2013 16:59:07 -0000      1.461.4.8
  @@ -105,8 +105,9 @@
   
       if (ts->numRemovedPackages == ts->allocedRemovedPackages) {
        ts->allocedRemovedPackages += ts->delta;
  +     /* XXX coverity #1035956 */
        ts->removedPackages = (uint32_t *) xrealloc(ts->removedPackages,
  -             sizeof(ts->removedPackages) * ts->allocedRemovedPackages);
  +             sizeof(*ts->removedPackages) * ts->allocedRemovedPackages);
       }
   
   assert(ts->removedPackages != NULL); /* XXX can't happen. */
  @@ .
______________________________________________________________________
RPM Package Manager                                    http://rpm5.org
CVS Sources Repository                                rpm-cvs@rpm5.org

Reply via email to