Page MenuHomeFreeBSD

libpfctl: fix Coverity issues
ClosedPublic

Authored by kp on Oct 23 2023, 3:13 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 5, 7:17 AM
Unknown Object (File)
Wed, Oct 30, 1:50 AM
Unknown Object (File)
Mon, Oct 21, 4:23 PM
Unknown Object (File)
Wed, Oct 16, 9:44 PM
Unknown Object (File)
Mon, Oct 14, 8:48 PM
Unknown Object (File)
Mon, Oct 14, 10:02 AM
Unknown Object (File)
Oct 13 2024, 4:16 AM
Unknown Object (File)
Oct 12 2024, 3:23 PM
Subscribers

Details

Summary
  • handle snl_finalize_msg() returning NULL
  • insert the correct data into the states list
  • add missing nvlist_destroy()
  • incorrect order for array bounds

Coverity: 1522929, 1522925, 1522923, 1522921, 1522780, 1522770, 1522764, 1487785, 1471250
MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 54131
Build 51021: arc lint + arc unit

Event Timeline

kp requested review of this revision.Oct 23 2023, 3:13 PM
kp added a parent revision: D42329: libpfctl: fix pfctl_do_ioctl().
emaste added inline comments.
lib/libpfctl/libpfctl.c
728

do we need nvlist_destroy in here too?

735

CID 1487785

1428

CID 1522764

This revision is now accepted and ready to land.Oct 23 2023, 8:24 PM
This revision was automatically updated to reflect the committed changes.