- Adding the incorrect sized vector to a pointer vector would cause a crash.

This commit is contained in:
Christoffer Lerno
2026-02-16 00:39:14 +01:00
parent a7309b217e
commit 990e9685d2
8 changed files with 18 additions and 28 deletions

View File

@@ -5297,7 +5297,7 @@ FOUND:;
copy_begin();
contracts = astid(copy_ast_macro(astptr(contracts)));
copy_end();
SourceSpan param_span = extend_span_with_token(params[0]->span, VECLAST(params)->span);
SourceSpan param_span = extend_span_with_token(params[0]->span, VECLAST(params)->span); // NOLINT
if (!sema_analyse_generic_module_contracts(context, module, instance, contracts, param_span, invocation_span))
{
decl_poison(instance);