Page MenuHomeFreeBSD

Mark errf _Noreturn and mark errf and warn __printflike
ClosedPublic

Authored by ngie on May 13 2017, 8:00 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jun 5, 3:47 PM
Unknown Object (File)
Thu, Jun 4, 8:07 PM
Unknown Object (File)
Wed, Jun 3, 7:49 PM
Unknown Object (File)
Mon, Jun 1, 4:37 PM
Unknown Object (File)
Mon, Jun 1, 4:11 PM
Unknown Object (File)
May 18 2026, 9:50 AM
Unknown Object (File)
May 17 2026, 7:39 PM
Unknown Object (File)
May 17 2026, 1:52 PM
Subscribers

Details

Summary

Mark errf _Noreturn and mark errf and warn __printflike

The _Noreturn attribute was added to placate Coverity and other static
analysis tools. The __printflike attribute was added to catch issues
with the calls related to printf(3) abuse.

  • Modify the code to facilitate the __printflike attribute addition.
  • Convert errf calls in to_mb(..) and to_mb_string(..) to warn(..) so the calls will return instead of exiting, as the code suggests it should.

MFC after: 1 month
Sponsored by: Dell EMC Isilon

Diff Detail