Bug 250543 - graphics/ansilove: Update to 4.1.4
Summary: graphics/ansilove: Update to 4.1.4
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Dmitry Marakasov
URL: https://github.com/ansilove/ansilove
Depends on:
Reported: 2020-10-22 19:52 UTC by Juraj Lutter
Modified: 2020-10-23 14:58 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (amdmi3)

graphics/ansilove: Update to 4.1.4 (1.79 KB, patch)
2020-10-22 19:52 UTC, Juraj Lutter
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Juraj Lutter freebsd_committer 2020-10-22 19:52:47 UTC
Created attachment 218987 [details]
graphics/ansilove: Update to 4.1.4


please find the patch attached.

- 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.