Thread overview
[Issue 21729] rawRead derefences null pointer if invoked on closed File (segfault)
Mar 18
Berni44
May 01
Dlang Bot
May 04
Dlang Bot
March 18
https://issues.dlang.org/show_bug.cgi?id=21729

Berni44 <bugzilla@bernis-buecher.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@bernis-buecher.de

--- Comment #1 from Berni44 <bugzilla@bernis-buecher.de> ---
I think, before doing this "trustedFread" in (currently) line 1057, there needs to be an `enforce(_p !is null, some message)`. But I'm not firm enough in std.stdio, so I don't want to file a fixing PR. Might fix 21728 too.

--
May 01
https://issues.dlang.org/show_bug.cgi?id=21729

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> ---
@berni44 created dlang/phobos pull request #8025 "Fix Issues 21728, 21729 and 21730 (check for open file, before using trustedFread)" fixing this issue:

- Fix Issue 21729 - rawRead derefences null pointer if invoked on closed File
(segfault)

https://github.com/dlang/phobos/pull/8025

--
May 04
https://issues.dlang.org/show_bug.cgi?id=21729

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/phobos pull request #8025 "Fix Issues 21728, 21729 and 21730 (check for open file, before using trustedFread)" was merged into stable:

- 3b501e1ddca1b144234a0fa27d6dc7109b7c9aa7 by berni44:
  Fix Issue 21729 - rawRead derefences null pointer if invoked on closed File
(segfault)

https://github.com/dlang/phobos/pull/8025

--