aboutsummaryrefslogtreecommitdiff
path: root/src/zenhttp/httpserver.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2026-03-17 18:27:51 +0100
committerStefan Boberg <[email protected]>2026-03-17 18:30:14 +0100
commit512a77b5704010c087cf1dd47e419a153915fb3b (patch)
tree690b7bde2a3d37876543b344e5e1dca2db7ee2f0 /src/zenhttp/httpserver.cpp
parentbump version to pre1 (diff)
downloadzen-512a77b5704010c087cf1dd47e419a153915fb3b.tar.xz
zen-512a77b5704010c087cf1dd47e419a153915fb3b.zip
Fix two potential SIGSEGV paths during early startup
- sentryintegration.cpp: sentry_options_new() can return nullptr on OOM; all subsequent sentry_options_set_* calls would immediately SIGSEGV. Guard with an early return that sets m_SentryErrorCode = -1 so Close() correctly skips sentry_close(). - zenserver.cpp: ZenServerState::Register() returns nullptr if the shared memory entry table is full. The subsequent Entry->SignalHasInstanceInfo(), Entry->SignalNoNetwork(), Entry->AddSponsorProcess(), and DoRun(Entry) calls would all SIGSEGV. Throw a descriptive runtime_error instead, which is caught by the existing catch handlers in Run().
Diffstat (limited to 'src/zenhttp/httpserver.cpp')
0 files changed, 0 insertions, 0 deletions