Skip to content

Possible NULL dereference in mlir/Dialect/EmitC/IR #157452

@apach301

Description

@apach301

Hi,

I found possible null pointer dereference with Svace static analyzer.

A lvalueType pointer is checked on NULL and then dereferenced while error printing in GetGlobalOp::verifySymbolUses() at mlir/lib/Dialect/EmitC/IR/EmitC.cpp:

if (!lvalueType || lvalueType.getValueType() != globalType)
return emitOpError("on non-array type expects result inner type ")
<< lvalueType.getValueType() << " to match type " << globalType
<< " of the global @" << getName();

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions