You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
instance BitWord SBool SWord SInteger where
[...]
wordLit n x = svInteger (KBounded False (fromInteger n)) x
Here we have a use of fromInteger with a return type of Int. We should never do that. This produces the wrong result if the integer argument exceeds MAXINT.
We should also check every usage of fromInteger in the cryptol codebase, to ensure that none of them have problems with undetected wrap-around behavior.
The command
:sat all (\x -> False) all_states
, issued on the REPL after loading the Cryptol code below, returns True.The text was updated successfully, but these errors were encountered: