Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Nov 2007 01:51:46 +0000 (UTC)
From:      Tai-hwa Liang <avatar@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/usr.bin/tail read.c
Message-ID:  <200711220151.lAM1pkeE043736@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
avatar      2007-11-22 01:51:46 UTC

  FreeBSD src repository

  Modified files:
    usr.bin/tail         read.c 
  Log:
  Nuking the temporary pointer once it is properly tracked in local storage.
  This should fix the double free() bug where there's no tailing newline(\n)
  character:
  
          current# echo -n test | tail
          testAssertion failed: (run->magic == ARENA_RUN_MAGIC), function
          arena_dalloc, file /usr/src/lib/libc/stdlib/malloc.c, line 2448.
          Abort (core dumped)
  
  Reviewed by:    kib
  MFC after:      3 days
  
  Revision  Changes    Path
  1.14      +1 -0      src/usr.bin/tail/read.c



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