From f9e289a5aebcb5252db9c8f79acf1a9cbe0f39ba Mon Sep 17 00:00:00 2001 From: Elinor Fung Date: Tue, 6 Aug 2024 15:20:28 -0700 Subject: [PATCH] Bring back assert in fx_ver_t::parse --- src/native/corehost/fxr/fx_ver.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/native/corehost/fxr/fx_ver.cpp b/src/native/corehost/fxr/fx_ver.cpp index 7a857cdff473b0..ff4b4009aed699 100644 --- a/src/native/corehost/fxr/fx_ver.cpp +++ b/src/native/corehost/fxr/fx_ver.cpp @@ -373,7 +373,6 @@ bool parse_internal(const pal::string_t& ver, fx_ver_t* fx_ver, bool parse_only_ bool fx_ver_t::parse(const pal::string_t& ver, fx_ver_t* fx_ver, bool parse_only_production) { bool valid = parse_internal(ver, fx_ver, parse_only_production); - // Causes a SIGABRT in free() on MacOS at least in singlefile, possibly elsewhere - // assert(!valid || fx_ver->as_str() == ver); + assert(!valid || fx_ver->as_str() == ver); return valid; }