mtasa-blue icon indicating copy to clipboard operation
mtasa-blue copied to clipboard

Detect integral under/overflow and NaN in new parser

Open Pirulax opened this issue 4 years ago • 2 comments

The new parser didn't deal correctly with NaN, under/overflows and signed to unsigned conversions. Now it will SetBadArgument if:

  • casting the read number is negative and T is unsigned.
  • the read number is NaN (previously this was only done for T = double/float)

Also added under/overflow detection stuff for debug mode.

Pirulax avatar Mar 10 '21 21:03 Pirulax

This draft pull request is stale because it has been open for at least 90 days with no activity. Please continue on your draft pull request or it will be closed in 30 days automatically.

github-actions[bot] avatar Jan 07 '22 12:01 github-actions[bot]

This draft pull request was closed because it has been marked stale for 30 days with no activity.

github-actions[bot] avatar Feb 07 '22 01:02 github-actions[bot]