codeql icon indicating copy to clipboard operation
codeql copied to clipboard

Ruby: Do not attempt to track precise hash indices for floats and complex numbers

Open hvitved opened this issue 2 years ago • 2 comments

As pointed out by @asgerf, the inherent imprecision when comparing floats (and complex numbers) makes them unsuitable for tracking precise hash index information. We therefore simply treat reads and stores with float/complex indices as unknown indices.

hvitved avatar Sep 30 '22 07:09 hvitved

I think we should also restrict it in TKnownPairValueContent

asgerf avatar Sep 30 '22 07:09 asgerf

I think we should also restrict it in TKnownPairValueContent

Right, I'll fix.

hvitved avatar Sep 30 '22 07:09 hvitved