This is not ideal fixes, but it does not change the
point of the benchmark, so should be good enough here.
- ix[k] can be 0 causing negative index on array access.
- p[ip][0] can be outside of Index_type.
Paths
| Differential D157348
Fix UB in benchmakrs ClosedPublic Authored by vitalybuka on Aug 7 2023, 4:26 PM.
Details
Summary This is not ideal fixes, but it does not change the
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Aug 7 2023, 6:05 PM Closed by commit rTaf2e07172ef6: Fix UB in benchmakrs (authored by vitalybuka). · Explain WhyAug 7 2023, 6:43 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 548023 MicroBenchmarks/LCALS/SubsetCLambdaLoops/LambdaSubsetCbenchmarks.cxx
MicroBenchmarks/LCALS/SubsetCRawLoops/RawSubsetCbenchmarks.cxx
|
this may express the intention better