summaryrefslogtreecommitdiff
path: root/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
diff options
context:
space:
mode:
authorKristof Provost <kp@FreeBSD.org>2026-01-12 17:19:52 +0100
committerKristof Provost <kp@FreeBSD.org>2026-01-14 07:44:43 +0100
commit1ee4405a00d7bcfa5545bba7a78b71cdd4cfdc20 (patch)
tree4a613391287960395719b7a0bd59777341cfb503 /source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
parent1550fcf802e3413e2ecb39fd81f7bff1c134c3f3 (diff)
pf: avoid a shadowed variable in the pf_create_state() source limiter handling
the code that unwinds state creation when something fails needed the pf_source variable at the function scope to be set, but this was masked by a declaration in the scope that sets up the source limiting. this results in a NULL deref in the unwind code when it needs to clean up the accounting for a source limiter. i found it funny that i left this comment for myself in the unwinding code: /* who needs KASSERTS when we have NULL derefs */ ok jmatthew@ Obtained from: OpenBSD, dlg <dlg@openbsd.org>, fc9311361f Sponsored by: Rubicon Communications, LLC ("Netgate")
Diffstat (limited to 'source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp')
0 files changed, 0 insertions, 0 deletions