Comment

Comment by kjellsbells

around line 663. there's a call to strrchr, checking for a period in the filename. then immediately after that, there's a strlen that uses the results.

Which is fine, unless the first call returns NULL, because there was no period in the name, and then the program will crash.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton