Page MenuHomeFreeBSD

libpfctl: Don't pass stack garbage to free.
ClosedPublic

Authored by jhb on Mar 22 2023, 2:57 AM.
Tags
None
Referenced Files
F167903494: D39198.id119228.diff
Tue, Aug 25, 8:53 AM
F167896469: D39198.id119278.diff
Tue, Aug 25, 7:53 AM
F167886686: D39198.id.diff
Tue, Aug 25, 6:27 AM
F167882690: D39198.diff
Tue, Aug 25, 5:52 AM
Unknown Object (File)
Mon, Aug 24, 2:00 AM
Unknown Object (File)
Sun, Aug 9, 3:49 PM
Unknown Object (File)
Sun, Aug 9, 3:48 PM
Unknown Object (File)
Fri, Aug 7, 9:43 PM
Subscribers

Details

Summary

GCC 9 on stable/12 reports a -Wmaybe-uninitialized error for the call
to free in _pfctl_clear_states.

Diff Detail

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

Event Timeline

jhb requested review of this revision.Mar 22 2023, 2:57 AM
mjg added inline comments.
lib/libpfctl/libpfctl.c
1191

but the var is unused to begin with? modulo the bogus free call

mjg added inline comments.
lib/libpfctl/libpfctl.c
1191

huh i somehow did not connect that you removed it altogether, apologies :)

This revision is now accepted and ready to land.Mar 22 2023, 4:57 AM
This revision was automatically updated to reflect the committed changes.