Open CryptoPascal31 opened 11 months ago
The add-time function can overflow and give unexpected results.
add-time
Some examples:
pact> (add-time (time "2016-07-22T12:00:00Z") 10000000000000000000000000000000000) "-157918-10-27T19:13:49Z" pact> (add-time (time "2016-07-22T12:00:00Z") 1000000000000000000000000000000000000000000000000000000000000000000000000) "2016-07-22T12:00:00Z"
As you can see in some cases:
Either:
@CryptoPascal31 thank you, we will look into it
Issue description
The
add-time
function can overflow and give unexpected results.Steps to reproduce
Some examples:
As you can see in some cases:
Expected Behavior
Either:
add-time
as "unsafe" without prior boundaries check.