Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two missing null check for return values of searchAttributeNyName() #102

Open
szsam opened this issue Jun 5, 2023 · 0 comments
Open

Two missing null check for return values of searchAttributeNyName() #102

szsam opened this issue Jun 5, 2023 · 0 comments

Comments

@szsam
Copy link

szsam commented Jun 5, 2023

The result of these calls to searchAttributeNyName is not checked for null, but 92% of calls to searchAttributeNyName check for null.

Onnx__AttributeProto *a_value = searchAttributeNyName(ctx->onnx_node->n_attribute,ctx->onnx_node->attribute,"value");

Onnx__AttributeProto *a_kernel_shape = searchAttributeNyName(ctx->onnx_node->n_attribute,ctx->onnx_node->attribute,"kernel_shape");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant