Skip to content

[IE][VPU] Klockwork ShaveElfMetadataParser.cpp#2230

Closed
maxim-kurin wants to merge 1 commit intoopenvinotoolkit:releases/2021/1from
maxim-kurin:last1k/kw-shave-elf-parser
Closed

[IE][VPU] Klockwork ShaveElfMetadataParser.cpp#2230
maxim-kurin wants to merge 1 commit intoopenvinotoolkit:releases/2021/1from
maxim-kurin:last1k/kw-shave-elf-parser

Conversation

@maxim-kurin
Copy link
Copy Markdown
Contributor

This file is used both on MDK and OpenVINO side. Klockwork for MDK found a problem in this file. This is the fix for that problem.

case md_type_op_xor:
case md_type_op_shl:
case md_type_op_lshr:
assert(values.size() >= 2);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Don't use simple assert - it isn't evaluated outside of Debug mode - use dedicated macros like VPU_THROW_UNLESS with descriptive messages

@maxim-kurin maxim-kurin deleted the last1k/kw-shave-elf-parser branch September 22, 2020 15:06
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

Successfully merging this pull request may close these issues.

3 participants