[phobos] [D-Programming-Language/phobos] 86511b: [Windows] Fix a range error in std.socket.SocketSe...

GitHub via phobos phobos at puremagic.com
Sun May 24 09:29:35 PDT 2015


  Branch: refs/heads/master
  Home:   https://github.com/D-Programming-Language/phobos
  Commit: 86511b3ca9f4a6b5358b7983ee64d0a688c63216
      https://github.com/D-Programming-Language/phobos/commit/86511b3ca9f4a6b5358b7983ee64d0a688c63216
  Author: Martin <noone at nowhere.com>
  Date:   2015-05-23 (Sat, 23 May 2015)

  Changed paths:
    M std/socket.d

  Log Message:
  -----------
  [Windows] Fix a range error in std.socket.SocketSet.add()

`fds()` returns a slice of size `count()`, and since fds() is invoked
before evaluating the index expression (incl. increasing the count),
its length is the old count, so we cannot assign to the element at
index = old count, that's 1 past the end.


  Commit: 663a32d0f651cf0000f4379db604c16c3b6c440d
      https://github.com/D-Programming-Language/phobos/commit/663a32d0f651cf0000f4379db604c16c3b6c440d
  Author: Steven Schveighoffer <schveiguy at yahoo.com>
  Date:   2015-05-24 (Sun, 24 May 2015)

  Changed paths:
    M std/socket.d

  Log Message:
  -----------
  Merge pull request #3311 from kinke/socket

[Windows] Fix a range error in std.socket.SocketSet.add()


Compare: https://github.com/D-Programming-Language/phobos/compare/cb4dadf7109d...663a32d0f651


More information about the phobos mailing list