Bug 2160360

Summary: milter-greylist: Build with _GNU_SOURCE for strcasestr
Product: [Fedora] Fedora Reporter: Florian Weimer <fweimer>
Component: milter-greylistAssignee: Florian Weimer <fweimer>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: anon.amish, paul, rh-bugzilla
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: milter-greylist-4.6.4-6.fc38 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-01-12 07:28:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2141798    

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.