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
F115727662: D39198.diff
Sun, Apr 27, 6:49 PM
Unknown Object (File)
Mar 21 2025, 7:50 AM
Unknown Object (File)
Mar 19 2025, 10:49 AM
Unknown Object (File)
Feb 21 2025, 6:43 PM
Unknown Object (File)
Feb 20 2025, 1:33 PM
Unknown Object (File)
Feb 4 2025, 11:58 AM
Unknown Object (File)
Feb 2 2025, 7:01 PM
Unknown Object (File)
Jan 25 2025, 10:24 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 Not Applicable
Unit
Tests Not Applicable

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.