Skip to content

Validator API naming mismatch (CRITICAL) #2

@mrhapile

Description

@mrhapile

❌ Problem

Same issue pattern:

WasmEdge_ValidatorCreate(nullptr)
WasmEdge_ValidatorDelete(ctx)

Correct API:

WasmEdge_ValidatorContextCreate()
WasmEdge_ValidatorContextDelete()

✅ Fix

Change to:

ValidatorPtr validatorCtx(WasmEdge_ValidatorContextCreate());

And deleter:

void operator()(WasmEdge_ValidatorContext* ctx) const {
    if (ctx) WasmEdge_ValidatorContextDelete(ctx);
}

📌 Severity: Critical
📌 Phase impact: Phase 3
📌 Fix required

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingduplicateThis issue or pull request already existsenhancementNew feature or requesthelp wantedExtra attention is needed

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions