Tree
- Tree:
a781f806454709a83505b159a204f269bb810c61
- Date:
- Message:
- gemini_parse_reply: return code and don't close connection clang static analyzer found a possible use after free: if the code is not 2X in gemini_parse_reply we call close_conn. Then, in net_read we set req->done_header, but req may have been free'd! Actually, this is almost impossible to trigger. close_conn never ends up calling free(req) on its first try, because tls_close takes a while and is rescheduled by libevent. (The check req->ctx != NULL in close_conn is always true if it's a gemini request.) Nevertheless, it's clear to move close_conn out of gemini_parse_reply and simply return the response code: it feels wrong that a "parsing function" takes logic decisions.
README.md | commits | blame |
brutalist.config | commits | blame |
dark.config | commits | blame |
light.config | commits | blame |
xdg-migrate.sh* | commits | blame |
README.md
# Contrib - `brutalist.config`: a brutalist theme - `light.config`: an opinionated theme for light terminals. Load it with `telescope -c contrib/light.config` or copy it to `~/.config/telescope/config` - `dark.config`: an opinionated theme for dark terminals. Load it with `telescope -c contrib/dark.config` or copy it to `~/.config/telescope/config` - `xdg-migrate.sh` aids the migration from a monolithic `~/.telescope` directory to a XDG.