-
-
Notifications
You must be signed in to change notification settings - Fork 352
Open
Description
Hi. The library seems to have undefined behavior, specifically signed integer overflow.
include/FastNoiseLite.h:484:10: runtime error: signed integer overflow: 1337 * 668265261 cannot be represented in type 'int'
static inline int _fnlHash2D(int seed, int xPrimed, int yPrimed)
{
int hash = seed ^ xPrimed ^ yPrimed;
hash *= 0x27d4eb2d;
return hash;
}
Is this intended, if so what is the reason?
Metadata
Metadata
Assignees
Labels
No labels