Skip to content

Conversation

@dfaure-kdab
Copy link
Member

Use std::optional instead, to represent the case where no constraint is set.

Detected by UBSAN:
KDReportsAbstractTableElement.cpp:126:13: runtime error: load of value 2, which is not a valid value for type 'Unit'

@dfaure-kdab dfaure-kdab force-pushed the wip/dfaure/fix-ub-enum-cast branch from 68b16b2 to 35d340f Compare December 18, 2025 23:22
@dfaure-kdab dfaure-kdab marked this pull request as draft December 19, 2025 09:17
@dfaure-kdab dfaure-kdab marked this pull request as ready for review December 19, 2025 09:17
@dfaure-kdab dfaure-kdab force-pushed the wip/dfaure/fix-ub-enum-cast branch 3 times, most recently from 5a7f02c to c84e04d Compare December 19, 2025 09:22
Use std::optional instead, to represent the case where no constraint is
set.

Detected by UBSAN:
   KDReportsAbstractTableElement.cpp:126:13: runtime error: load of value 2, which is not a valid value for type 'Unit'
@dfaure-kdab dfaure-kdab force-pushed the wip/dfaure/fix-ub-enum-cast branch from 042193e to 396c675 Compare December 19, 2025 11:21
@dfaure-kdab dfaure-kdab merged commit d6a33f6 into master Dec 19, 2025
38 checks passed
@dfaure-kdab dfaure-kdab deleted the wip/dfaure/fix-ub-enum-cast branch December 19, 2025 11:51
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.

2 participants