Bug 2160360 - milter-greylist: Build with _GNU_SOURCE for strcasestr
Summary: milter-greylist: Build with _GNU_SOURCE for strcasestr
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: milter-greylist
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Florian Weimer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PortingToModernCNoUpstream
TreeView+ depends on / blocked
 
Reported: 2023-01-12 07:14 UTC by Florian Weimer
Modified: 2023-01-12 07:28 UTC (History)
3 users (show)

Fixed In Version: milter-greylist-4.6.4-6.fc38
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-01-12 07:28:04 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Florian Weimer 2023-01-12 07:14:22 UTC
This package calls strcasestr without a previous declaration. The implicitly declared return type is int, which means that the function can return 0 even if the string is found, if we are unlucky. Further compiler versions will also reject such implicitl function declarations, leading to build failures.

Filing this here for tracking purposes because upstream does not seem to have a mailing list/bug tracker.


Note You need to log in before you can comment on or make changes to this bug.