-
Stabbypossum 1.4.31 "KRIS" Stable
released this
2026-11-25 03:47:05 +01:00 | 9 commits to master since this releaseStabbypossum 1.4.31 "KRIS" frees what it borrows from C libraries on every path, never writes a private key to disk while making it, and imports feed text with its characters intact.
Install
Run the image from Docker Hub: loweel/stabbypossum.
This release ships no binaries. The source archive is attached below.
C resources freed on every path
The server uses a few C libraries: curl, libmicrohttpd, OpenSSL, libxml2, jansson, zlib, cmark and ImageMagick. Every binding was checked. On every path that runs per request, per delivery or per image, everything is freed, including on errors and exceptions.
Where the freeing was written by hand, it is now done by the objects themselves when they go out of scope:
- The OpenSSL objects used to sign, to compare key pairs and to make keys.
- The XML parser that reads feeds.
A few rare paths that could leave a file descriptor open now close it:
- The spool journal, when a checkpoint cannot be written or a segment cannot be opened.
- The memory samples.
The private key never touches the disk while it is made
A new key pair used to pass through two temporary files, and the private one was in clear, readable under the default permissions until it was removed. The pair is now made in memory and goes straight to the encrypted keystore.
At start, any such file that an older release left behind (if it was killed while making a key) is removed. Each removal leaves an INFO line in the log. If a file cannot be removed, an ERROR line says so, and the removal is tried again at the next start.
An unfollow no longer breaks the list of follows
If an unfollow came while the list of accounts a user follows was being read, the file that had just gone made the whole reading fail, with an ERROR line. That file is now skipped, and a damaged file is reported on its own without stopping the rest.
Feed text keeps its characters
Feeds whose entries are HTML, such as a Forgejo release feed, write a quote as
". That code was kept after the HTML was removed, and its#was then dropped on import, so a quote showed as "& 34;". These codes are now turned back into the characters they stand for, accents and emoji included, in the feed's title and in each entry's title, summary and content. The decoder is written in SPARK and proved.Tests
The full smoke passes on the test image and on the production image, with 0 errors in the log. SPARK proves everything, and the unit tests pass. New tests cover the removal of leftover key files and the decoding of feed text.
Downloads
-
Source code (ZIP)
1 download
-
Source code (TAR.GZ)
1 download