Skip to content

[core] Fix Coverity issues#36819

Open
praasz wants to merge 15 commits into
openvinotoolkit:masterfrom
praasz:coverity/fix-core-issues
Open

[core] Fix Coverity issues#36819
praasz wants to merge 15 commits into
openvinotoolkit:masterfrom
praasz:coverity/fix-core-issues

Conversation

@praasz

@praasz praasz commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Details:

  • Bunch of fixes for Coverity issue in core component.
  • Improve Constant value check in constant type and add unit test.

Tickets:

  • N/A

AI Assistance:

  • AI assistance used: yes
  • Coverity log analysis and points all places to fix

@praasz praasz added this to the 2026.4 milestone Jul 10, 2026
@praasz praasz requested review from a team as code owners July 10, 2026 10:14
@github-actions github-actions Bot added the category: Core OpenVINO Core (aka ngraph) label Jul 10, 2026
Comment thread src/core/src/pass/stateful_to_stateless.cpp
Comment thread src/core/src/op/constant.cpp Outdated
Comment thread src/core/dev_api/openvino/runtime/aligned_buffer.hpp
Comment thread src/core/src/op/constant.cpp Outdated
Comment thread src/core/src/pass/pa_kv_reorder_fusion.cpp

@olpipi olpipi left a comment

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.

I reviewed everything but src/core/tests/constant.cpp‎

@CuriousPanCake CuriousPanCake left a comment

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.

No concerns regarding pass code

praasz added 4 commits July 14, 2026 14:03
Add LL suffix to integer literals 2147483648 and 2147483649 in
in_t_range_i32_ct test suite. MSVC treats decimal literals in range
(INT32_MAX, UINT32_MAX] as unsigned int, so applying unary minus to
them triggers C4146 (unary minus on unsigned type). Explicit LL suffix
forces long long type, eliminating the warning without any pragma.
@praasz praasz enabled auto-merge July 16, 2026 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category: Core OpenVINO Core (aka ngraph)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants