[phobos] [D-Programming-Language/phobos] 994d6b: fix issue 15293

GitHub via phobos phobos at puremagic.com
Sun Jan 3 06:13:04 PST 2016


  Branch: refs/heads/master
  Home:   https://github.com/D-Programming-Language/phobos
  Commit: 994d6b81815bc70ab8507ece7285b49ef5ce6d2d
      https://github.com/D-Programming-Language/phobos/commit/994d6b81815bc70ab8507ece7285b49ef5ce6d2d
  Author: anonymous <aG0aep6G at users.noreply.github.com>
  Date:   2015-11-12 (Thu, 12 Nov 2015)

  Changed paths:
    M std/stdio.d

  Log Message:
  -----------
  fix issue 15293

ReadlnAppender tried to claim the capacity of the passed buffer, calling
assumeSafeAppend on the result so that on the next call it has a capacity
again that can be claimed.

The obvious problem with that: readln would stomp over memory that it has
not been given.

There was also a subtler problem with it (which caused issue 15293):
When readln wasn't called with the previous line, but with the original
buffer (byLine does that), then the passed buffer had no capacity, so
ReadlnAppender would not assumeSafeAppend when slicing the new line from
it. But without a new assumeSafeAppend, the last one would still be in
effect, possibly on a sub slice of the new line.


  Commit: 15b550da7275558936569099a7396d06300b3576
      https://github.com/D-Programming-Language/phobos/commit/15b550da7275558936569099a7396d06300b3576
  Author: anonymous <aG0aep6G at users.noreply.github.com>
  Date:   2015-11-13 (Fri, 13 Nov 2015)

  Changed paths:
    M std/stdio.d

  Log Message:
  -----------
  avoid .capacity


  Commit: fc77dbbfa93d126c5dfec7c03cc8939b819c09a9
      https://github.com/D-Programming-Language/phobos/commit/fc77dbbfa93d126c5dfec7c03cc8939b819c09a9
  Author: Steven Schveighoffer <schveiguy at yahoo.com>
  Date:   2015-11-13 (Fri, 13 Nov 2015)

  Changed paths:
    M std/stdio.d

  Log Message:
  -----------
  Merge pull request #3802 from aG0aep6G/15293

fix issue 15293


  Commit: a1a596646f04f20df9c93eac7ca8baeddf52748e
      https://github.com/D-Programming-Language/phobos/commit/a1a596646f04f20df9c93eac7ca8baeddf52748e
  Author: MetaLang <jared771 at gmail.com>
  Date:   2015-11-29 (Sun, 29 Nov 2015)

  Changed paths:
    M win32.mak
    M win64.mak

  Log Message:
  -----------
  Add std.experimental.allocator to the build script


  Commit: d407ec73e42e45b8422e7862b7fb886dd9bfcead
      https://github.com/D-Programming-Language/phobos/commit/d407ec73e42e45b8422e7862b7fb886dd9bfcead
  Author: Martin Nowak <code at dawg.eu>
  Date:   2015-11-29 (Sun, 29 Nov 2015)

  Changed paths:
    M win32.mak
    M win64.mak

  Log Message:
  -----------
  Merge pull request #3843 from MetaLang/stable

Fix Issue 15281 - Add std.experimental.allocator to the build script


  Commit: e286199645ec709575db462e08872ff259088ebe
      https://github.com/D-Programming-Language/phobos/commit/e286199645ec709575db462e08872ff259088ebe
  Author: Martin Nowak <code at dawg.eu>
  Date:   2016-01-03 (Sun, 03 Jan 2016)

  Changed paths:
    M std/stdio.d
    M win32.mak
    M win64.mak

  Log Message:
  -----------
  Merge remote-tracking branch 'upstream/stable'

# Conflicts:
#	win32.mak
#	win64.mak


Compare: https://github.com/D-Programming-Language/phobos/compare/cda90eee4692...e286199645ec


More information about the phobos mailing list