Open sertonix opened 2 weeks ago
When the popen call in lib/sealcurses/src/video.c#L45 errors it returns NULL. Since there is no error checking the NULL is passed to fgetc and can cause a segfault (at least on musl libc).
popen
lib/sealcurses/src/video.c#L45
NULL
fgetc
(Hope this is enough information to fix the issue.)
Seems easy enough to fix. I'll include this in the next patch.
When the
popen
call inlib/sealcurses/src/video.c#L45
errors it returnsNULL
. Since there is no error checking theNULL
is passed tofgetc
and can cause a segfault (at least on musl libc).(Hope this is enough information to fix the issue.)