Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Mar 2005 22:08:52 +0000 (UTC)
From:      Ian Dowse <iedowse@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/usr.bin/tail reverse.c
Message-ID:  <200503202208.j2KM8qaO059528@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
iedowse     2005-03-20 22:08:52 UTC

  FreeBSD src repository

  Modified files:
    usr.bin/tail         reverse.c 
  Log:
  Don't skip the initialisation of tl->len when we hit an EOF immediately
  after allocating a new buffer. This bug caused `tail -r < /dev/null'
  to core dump when the `J' malloc option is set, and also affected
  any other input that was an exact multiple of 128k.
  
  Revision  Changes    Path
  1.19      +2 -3      src/usr.bin/tail/reverse.c



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