From b5635dd494deb321e7a2312839ff7b953f255c0c Mon Sep 17 00:00:00 2001 From: Dipin Hora Date: Mon, 7 Oct 2024 15:42:42 -0400 Subject: [PATCH] Add release notes for heap dependent finaliser use after free bug --- .release-notes/4522.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .release-notes/4522.md diff --git a/.release-notes/4522.md b/.release-notes/4522.md new file mode 100644 index 0000000000..9b1cae6090 --- /dev/null +++ b/.release-notes/4522.md @@ -0,0 +1,3 @@ +## Fix use after free bug in actor heap finalisation that can lead to a segfault + +The [0.45.2](https://github.com/ponylang/ponyc/releases/tag/0.45.2) release introduced an improvement to handling of objects with finalisers to make them more efficient to allocate on actor heaps. However, in the process it also introduced a potential for use after free situations that could lead to segfaults when running finalisers. With this change, we've reworked the implementation of the actor heap garbage collection to avoid the potential for use after free situations entirely. \ No newline at end of file