[Bug 268661] Accrete segfaults when it attempts to write to file without permissions

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 31 Dec 2022 01:43:07 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268661

            Bug ID: 268661
           Summary: Accrete segfaults when it attempts to write to file
                    without permissions
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: eylusion@gmail.com
                CC: bofh@freebsd.org

Created attachment 239138
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=239138&action=edit
git diff of display.c does null check before writing to fp

astro:accrete

display.c

Segmentation Fault occurs if program is executed in a directory without write
privileges.

Patch provided exits gracefully if *fp is NULL before fprintf's attempt to
write to non-existent file.

-- 
You are receiving this mail because:
You are the assignee for the bug.