From b1ef30736694f644e2e473429257a18b64a7615c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 4 Jan 2018 10:34:26 +0200 Subject: Fix few undefined behavior (ubsan) bugs --- build2/cc/compile.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build2/cc/compile.cxx') diff --git a/build2/cc/compile.cxx b/build2/cc/compile.cxx index 9de037e..47953ee 100644 --- a/build2/cc/compile.cxx +++ b/build2/cc/compile.cxx @@ -2973,7 +2973,7 @@ namespace build2 // if (cid == compiler_id::msvc && cmaj == 19 && cmin <= 11 && - src.is_a (*x_mod)) + x_mod != nullptr && src.is_a (*x_mod)) { // It's quite painful to guard the export with an #if/#endif so // if it is present, "fixup" the (temporary) preprocessed output -- cgit v1.1