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
Shifting a type by >=sizeof(type)*8 is undefined behaviour in C. Since
t->prng.buf is overwritten on the next iteration anyways this thankfully
isn't a real bug here.
Fixessilentbicycle#52
DanielG
added a commit
to DanielG/theft
that referenced
this issue
Dec 18, 2019
Shifting a type by >=sizeof(type)*8 is undefined behaviour in C. Since
t->prng.buf is overwritten on the next iteration anyways this thankfully
isn't a real bug here.
Fixessilentbicycle#52
When running theft with ubsan enabled (
-fsanitize=undefined
) I get the following error:At the mentioned source location we have:
According to the C standard shifting by more than the types size is undefined behaviour:
The text was updated successfully, but these errors were encountered: