| fcb31b57 | 11-Jun-2026 |
Kristof Provost <kp@FreeBSD.org> |
libpfctl: fix memory leak
When we snl_init_writer() we allocate memory in the struct snl_state in the struct pfctl_handle. This memory was never released again, leading to a memory leak. We still ha
libpfctl: fix memory leak
When we snl_init_writer() we allocate memory in the struct snl_state in the struct pfctl_handle. This memory was never released again, leading to a memory leak. We still had a reference to the memory and would release it on pfctl_close() (so valgrind did not detect it as a leak), but long-lived users (e.g. bsnmpd) would eventually run out of memory.
Explicitly reset the snl_state when we're done to prevent this.
MFC after: 2 weeks Sponsored by: Rubicon Communications, LLC ("Netgate")
show more ...
|
| 1e7665e3 | 12-Feb-2026 |
Kristof Provost <kp@FreeBSD.org> |
libpfctl: verify all parsers
List all currently defined parsers in 'all_parsers', and pass them to SNL_VERIFY_PARSERS(). This will detect incorrect odering in parsers, which will help us detect othe
libpfctl: verify all parsers
List all currently defined parsers in 'all_parsers', and pass them to SNL_VERIFY_PARSERS(). This will detect incorrect odering in parsers, which will help us detect otherwise subtle bugs.
Sponsored by: Rubicon Communications, LLC ("Netgate")
show more ...
|
| b84666f7 | 28-Aug-2025 |
Kristof Provost <kp@FreeBSD.org> |
pf: export expiration time as time_t
time_t has a different size on different platforms (i.e. 32-bit on i386, 64-bit on others). Rather than always exporting it as 64-bits use the platform-native si
pf: export expiration time as time_t
time_t has a different size on different platforms (i.e. 32-bit on i386, 64-bit on others). Rather than always exporting it as 64-bits use the platform-native size. This means we can safely write directly into a time_t variable, which we can't do on i386 eif we export 64 bits.
Sponsored by: Rubicon Communications, LLC ("Netgate")
show more ...
|