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
Unknown Object (File)
Sat, Dec 28, 8:38 AM
Unknown Object (File)
Dec 7 2024, 5:48 PM
Unknown Object (File)
Nov 28 2024, 7:28 AM
Unknown Object (File)
Nov 17 2024, 10:02 AM
Unknown Object (File)
Nov 11 2024, 4:51 AM
Unknown Object (File)
Nov 11 2024, 4:30 AM
Unknown Object (File)
Nov 11 2024, 4:28 AM
Unknown Object (File)
Nov 10 2024, 10:10 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.