Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Aug 2010 09:13:09 +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:  <201008020913.o729DWhx056418@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help

jh          2010-08-02 09:13:09 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_8)
    lib/libc/stdlib      reallocf.c 
  Log:
  SVN rev 210745 on 2010-08-02 09:13:09Z 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.36.2  +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?201008020913.o729DWhx056418>