Closed sikmir closed 2 years ago
Ouch, that's a bad copy-paste error! Thanks!
I'll roll a bugfix release as soon as I manage to (likely tomorrow morning)
slightly changing my mind, I've accumulated enough stuff to tag v0.6 (I wanted to include more, but anyway), so it'll take me a bit still (need to recheck everything, ensure documentation is clear etc)
Just for curiosity, what was the URL like? (I assume it was something along the lines of gemini://example.com:1234567890123456.../
.) I'd like to not only truncate the string (as done here) but also detect invalid port numbers as so and inform the user appropriately. Having some real-world example would be nice :)
Just for curiosity, what was the URL like? (I assume it was something along the lines of
gemini://example.com:1234567890123456.../
.)
Nothing special, it crashed with gemini://gemini.omarpolo.com
.
Oh, right, now I see. __strlcpy_chk
checks that dstlen < len
and aborts otherwise. Yesterday I misread the stacktrace and confused it with a segmentation fault ^^" apologies
(furthermore, just for the record, tab->url.port
is defined as char [6]
and req.port
as char [16]
so that can't possibly overflow, but I need to change the sizes for consistency)
Thanks again :)
last thing I promise :)
It's OK if I add the following to the ChangeLog:
2021-11-25 Nikolay Korotkiy <email-address-taken-from-git-here>
* telescope.c (load_gemini_url): fix macOs crash on `__strlcpy_chk' due to wrong lengths
or do you prefer Nikolay Korotkiy <sikmir@github>
? (or something else entirely)
I'd like to highlight important improvements/bugfixes on the ChangeLog file (that then is used to generate the per-release changelog message)
No problem:) Yes, sikmir@gmail.com
is OK.