Skip to content

Conversation

meiravgri
Copy link
Collaborator

backport #785 to 8.2

Conflicts due to svs multi feature that is not supported in 8.2

…r` (#785)

Prevent template deduction errors in GenerateAndAddVector by making data_t parameter non-deducible

Used std::type_identity<data_t>::type for the value parameter to force explicit template specification (e.g., GenerateAndAddVector<double>()) instead of allowing compiler to incorrectly deduce int from literal values, which caused buffer overflows when index expected different data types.

(cherry picked from commit 961d6eb)
@meiravgri meiravgri changed the title [8.2] [MOD-11651] Fix wrong template type deduction in GenerateAndAddVector (#785) [8.2] [MOD-11651] Fix wrong template type deduction in GenerateAndAddVector Oct 1, 2025
@meiravgri meiravgri enabled auto-merge October 1, 2025 04:45
@meiravgri meiravgri requested a review from GuyAv46 October 1, 2025 04:45
Copy link

codecov bot commented Oct 1, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.65%. Comparing base (a51585e) to head (db172f1).

Additional details and impacted files
@@           Coverage Diff           @@
##              8.2     #786   +/-   ##
=======================================
  Coverage   96.65%   96.65%           
=======================================
  Files         125      125           
  Lines        7680     7680           
=======================================
  Hits         7423     7423           
  Misses        257      257           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

1 participant