Thread overview
[Issue 21730] null ptr dereferenced in ChunksImpl.opApply (SIGSEGV)
May 01
Dlang Bot
May 01
kdevel
May 04
Dlang Bot
May 01
https://issues.dlang.org/show_bug.cgi?id=21730

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

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

--- Comment #1 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 21730 - null ptr dereferenced in ChunksImpl.opApply (SIGSEGV)

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

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

--- Comment #2 from kdevel <kdevel@vogtner.de> ---
> - Fix Issue 21730 - null ptr dereferenced in ChunksImpl.opApply (SIGSEGV)
> 
> https://github.com/dlang/phobos/pull/8025

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

The "x" in

   File(deleteme, "w+x");

is a GNU extension. POSIXly correct is

   File(deleteme, "w+");

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

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:

- 658474494640caa5b58a893f9745b00381c7ecf2 by berni44:
  Fix Issue 21730 - null ptr dereferenced in ChunksImpl.opApply (SIGSEGV)

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

--