Skip to content

Conversation

@sgbihu
Copy link
Contributor

@sgbihu sgbihu commented Nov 19, 2025

Details:

  • Fixed the heap-buffer-overflow exception when input is fp16

Tickets:

@sgbihu sgbihu requested review from a team as code owners November 19, 2025 05:58
@sgbihu sgbihu requested review from Copilot and removed request for a team November 19, 2025 05:58
@github-actions github-actions bot added the category: IE Tests OpenVINO Test: plugins and common label Nov 19, 2025
@sgbihu sgbihu requested review from olpipi and sbalandi and removed request for olpipi November 19, 2025 05:58
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a heap-buffer-overflow exception that occurred when the IsNaN operation receives fp16 (float16) input. The fix involves relocating the generate function for IsNaN and adding proper type handling to use the is_inf::fill_tensor template function with the correct type parameter based on the input element type.

Key Changes

  • Moved the generate function for ov::op::v10::IsNaN to after the is_inf namespace definition
  • Added conditional logic to handle fp16 inputs by calling is_inf::fill_tensor<ov::float16> for fp16 types and is_inf::fill_tensor<float> for other types

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sgbihu sgbihu requested a review from Copilot November 19, 2025 06:00
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Fixed the heap-buffer-overflow exception
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

}

namespace is_inf {
namespace is_cmp {
Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like not required change

@praasz
Copy link
Contributor

praasz commented Nov 20, 2025

@olpipi review, please.

@olpipi olpipi added this pull request to the merge queue Nov 20, 2025
Merged via the queue into openvinotoolkit:master with commit 6f0965b Nov 20, 2025
204 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category: IE Tests OpenVINO Test: plugins and common

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants