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

Fix Coverity issues for acl_mem_test.cpp #275

Merged
merged 2 commits into from
Feb 6, 2023

Conversation

IlanTruanovsky
Copy link
Contributor

Summary of fixes:

  • One PRINTF_ARGS Coverity issue was missed in 2834ca2
  • Several arrays were uninitialized, causing Coverity to complain

The Coverity issues that were resolved have a lot of output, so I'll refrain from displaying them here.

This was missed in intel@2834ca2.

Fixes:
```
test/acl_mem_test.cpp:1610:11:
  Type: Invalid type in argument to printf format specifier (PRINTF_ARGS)

test/acl_mem_test.cpp:1610:11:
  invalid_type: Argument "trial" to format specifier "%d" was expected to have type "int" but has type "unsigned long".
src/acl_hal.cpp:123:3:
  path: Condition "debug_mode > 0", taking true branch.
src/acl_hal.cpp:126:5:
  printf_function: Calling "vprintf" which uses a "printf"-style format string. [Note: The source code implementation of the function has been overridden by a builtin model.]
```
Many arrays where unitizialized in `acl_mem_test.cpp` which caused Coverity to complain.

The Coverity output for these issues is very large, so I'll refrain from posting it here.
@IlanTruanovsky IlanTruanovsky self-assigned this Feb 6, 2023
@IlanTruanovsky IlanTruanovsky added the bug Something isn't working label Feb 6, 2023
@IlanTruanovsky IlanTruanovsky added this to the 2023.2 milestone Feb 6, 2023
Copy link
Contributor

@pcolberg pcolberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @IlanTruanovsky!

@pcolberg pcolberg merged commit 19ce85b into intel:main Feb 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants