fromIntegral
: conversion errorfromIntegral
may result in coercion errors when used with optimization flags -O1
or -O2
in the following situation:
Int
to Natural
does not throw an arithmetic underflow errorInteger
greater than 2^64 to Natural
overflow.For the most part, these errors in and of themselves result only in availability and data integrity issues. However, in some circumstances, they may result in other, more complicated security related flaws, such as buffer overflow conditions.