May 03, 2016 [D-runtime] [dlang/druntime] d4f88a: If malloc fails, prevent getting Segmentation Faul... | ||||
---|---|---|---|---|
| ||||
Attachments:
| Branch: refs/heads/master Home: https://github.com/dlang/druntime Commit: d4f88a0a53c6b191842eb79225f38ff626f898d8 https://github.com/dlang/druntime/commit/d4f88a0a53c6b191842eb79225f38ff626f898d8 Author: tcak <tcak@users.noreply.github.com> Date: 2016-04-06 (Wed, 06 Apr 2016) Changed paths: M src/rt/tlsgc.d Log Message: ----------- If malloc fails, prevent getting Segmentation Fault When the memory is limited for the process, malloc fails, and data is null. Hence, it creates Segmentation Fault by trying to write a null pointer. Commit: c9e3bff1d70721ebc689ccf095d67e8784d29384 https://github.com/dlang/druntime/commit/c9e3bff1d70721ebc689ccf095d67e8784d29384 Author: tcak <tcak@users.noreply.github.com> Date: 2016-04-07 (Thu, 07 Apr 2016) Changed paths: M src/rt/tlsgc.d Log Message: ----------- Init calls onOutOfMemoryError if malloc fails Commit: 189ea69fe616ebbee4f13cea94e5e19d9ac23664 https://github.com/dlang/druntime/commit/189ea69fe616ebbee4f13cea94e5e19d9ac23664 Author: Rainer Schuetze <r.sagitario@gmx.de> Date: 2016-05-03 (Tue, 03 May 2016) Changed paths: M src/rt/tlsgc.d Log Message: ----------- Merge pull request #1534 from tcak/patch-2 If malloc fails, prevent getting Segmentation Fault Compare: https://github.com/dlang/druntime/compare/e64c3ec15841...189ea69fe616 |
Copyright © 1999-2021 by the D Language Foundation