Overview
| Artifact ID: | adafff04a31cf1863241902214d17fcc0dd4a88a07f4cf10de4d027901b75ac7 |
|---|---|
| Ticket: | 90612089d8423b75a50197df1cdd29d5aef2f062
signed integer overflow in ExprRandFunc() |
| User & Date: | chrstphrchvz on 2021-12-18 12:20:51 |
Changes
- closedate changed to: "2459567.01448206"
- closer changed to: "chrstphrchvz"
- icomment:
<blockquote>A few lines after that: <pre> iPtr->randSeed &= 0x7FFFFFFFL </pre> so any bits higher than 30 will be lost anyway.</blockquote> It seems that for a moment I forgot how (x * y) mod z = ((x mod z) * (y mod z)) mod z (in this case z = 0x7FFFFFFF+1); thanks for the clarification. - login: "chrstphrchvz"
- mimetype: "text/x-fossil-wiki"