Skip to content

Commit

Permalink
Fix stack-use-after-scope in workerd-api
Browse files Browse the repository at this point in the history
  • Loading branch information
danlapid committed Dec 4, 2024
1 parent 01d6f3e commit 5d0c9b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/workerd/server/workerd-api.c++
Original file line number Diff line number Diff line change
Expand Up @@ -539,8 +539,8 @@ void WorkerdApi::compileModules(jsg::Lock& lockParam,
"The python_workers compatibility flag is required to use Python.");
auto pythonRelease = KJ_ASSERT_NONNULL(getPythonSnapshotRelease(featureFlags));
auto version = getPythonBundleName(pythonRelease);
auto bundle = KJ_ASSERT_NONNULL(
fetchPyodideBundle(impl->pythonConfig, version), "Failed to get Pyodide bundle");
auto maybeBundle = fetchPyodideBundle(impl->pythonConfig, version);
auto& bundle = KJ_ASSERT_NONNULL(maybeBundle, "Failed to get Pyodide bundle");
// Inject SetupEmscripten module
{
auto& lock = kj::downcast<JsgWorkerdIsolate::Lock>(lockParam);
Expand Down

0 comments on commit 5d0c9b6

Please sign in to comment.