Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Aug 2010 06:33:01 +0000 (UTC)
From:      Jaakko Heinonen <jh@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/lib/libc/stdlib reallocf.c
Message-ID:  <201008280633.o7S6XOWp032015@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jh          2010-08-28 06:33:01 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_7)
    lib/libc/stdlib      reallocf.c 
  Log:
  SVN rev 211919 on 2010-08-28 06:33:01Z by jh
  
  MFC r204636:
  
  In reallocf(3), free the memory only when size != 0. Otherwise, when the
  System V compatibility option (malloc "V" flag) is in effect a zero sized
  reallocf() could cause a double free.
  
  PR:             bin/141753
  
  Revision  Changes    Path
  1.4.24.1  +8 -1      src/lib/libc/stdlib/reallocf.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008280633.o7S6XOWp032015>