Skip to content

Potential nullptr dereference during error logging #3896

@apach301

Description

@apach301

Hi! I found possible null pointer dereference with Svace static analyzer.

In dnnl::impl::graph::utils::pm::match_node() a b.bind_op and b.bind_node are checked for being NULL bails out if so. But error messages are printing with dereferencing these null pointers.

https://github.com/uxlfoundation/oneDNN/blob/main/src/graph/utils/pm/nested_matcher.cpp#L528-L557

Version

Current main

Metadata

Metadata

Assignees

No one assigned

    Labels

    sightingSuspicious library behavior. Should be promoted to a bug when confirmed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions