Bug 250543

Summary: graphics/ansilove: Update to 4.1.4
Product: Ports & Packages Reporter: Juraj Lutter <otis>
Component: Individual Port(s)Assignee: Dmitry Marakasov <amdmi3>
Status: Closed Overcome By Events    
Severity: Affects Only Me Flags: bugzilla: maintainer-feedback? (amdmi3)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
URL: https://github.com/ansilove/ansilove
Attachments:
Description Flags
graphics/ansilove: Update to 4.1.4 none

Description Juraj Lutter freebsd_committer 2020-10-22 19:52:47 UTC
Created attachment 218987 [details]
graphics/ansilove: Update to 4.1.4

Hi,

please find the patch attached.

Changelog:
- Set CMAKE_BUILD_TYPE to "Release" in CMakeLists.txt
- Enable FORTIFY_SOURCE level 2
- Move read_status variable declaration to the top of the function
- Check fread() return values in readComments() and add error handling
- Introduce the READ_RECORD function-like macro, for fread error handling
- Use READ_RECORD in readRecord() to add fread() error handling
- Only call memset() if the malloc call succeeds
- Check strdup() return value and error out on failed allocation

Builds OK on 11.4, 12-STABLE, 13-CURRENT.
Comment 1 Juraj Lutter freebsd_committer 2020-10-23 14:58:44 UTC
Thanks for even looking at this.