[pacman-dev] [PATCH] libalpm: avoid double free() in trans_free()

VMiklos vmiklos at frugalware.org
Sun Dec 25 20:27:23 EST 2005


  hi

  http://frugalware.org/~vmiklos/patches/libpacman-proposed/trans_double_free.diff

  trans->packages is only a list of package _pointers_ so using FREELISTPKGS() on
  it will cause a double free(). use FREELISTPTR instead
  
  how to reproduce this bug:
  $ sudo pacman -Rs k9copy --noconfirm
  checking dependencies... done.
  
  Targets: k9copy toolame
  
  removing k9copy... done.
  removing toolame... done.
  *** glibc detected *** double free or corruption (!prev): 0x0824eea0 ***

udv / greetings,
VMiklos

-- 
Developer of Frugalware Linux, to make things frugal - http://frugalware.org




More information about the pacman-dev mailing list