-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parsing very long literal sequences is broken in several ways #1104
Comments
... and you can find more if you e.g. insert periods, which triggers the float code, or records; and can also lead to GAP actually evaluating part of the expression:
|
The second error here occurs at much shorter lengths:
This is coming in the following way:
Technically, we can't even assume that That's not to say we should improve this error, or stop floats being records. The same thing occurs parsing |
You don't need demented custom float packages. Someone could install a method for ELM_REC for IsFloat. You could even imagine wanting x.mantissa and x.exponent to return suitable things. |
When reading input, literal sequences exceeding the size of the
Value
buffer (i.e. more than 1024 characters) are handled byReadLongNumber
insrc/read.c
. This is broken in several ways. Here are some examples. Warning very long input lines. Naturally.The text was updated successfully, but these errors were encountered: