From e8c58a55280192db2c35006734f42c7983cd9b81 Mon Sep 17 00:00:00 2001 From: "Emil J. Tywoniak" Date: Fri, 3 May 2024 20:41:42 +0200 Subject: [PATCH] bbox_derive: fix unininitialized memory UB when run with no named args --- passes/cmds/bbox_derive.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/passes/cmds/bbox_derive.cc b/passes/cmds/bbox_derive.cc index de0869cb1..758f79300 100644 --- a/passes/cmds/bbox_derive.cc +++ b/passes/cmds/bbox_derive.cc @@ -47,7 +47,7 @@ struct BboxDerivePass : Pass { } extra_args(args, argidx, d); - Module *base_override; + Module *base_override = nullptr; if (!base_name.empty()) { base_override = d->module(base_name); if (!base_override)