Avoid memory exhaustion on ASH and DPB and other arithmetic operations

Bug #1737838 reported by Paul F. Dietz on 2017-12-12
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Undecided
Unassigned

Bug Description

When random testing, I want to avoid crashing the lisp by exhausting memory on very large integer operations. This could happen, for example, if ASH is passed a very large integer as its second argument.

Modify arithmetic operations on bignums so if they would create an value that is too large they signal a particular class of error (that can be handled and recognized apart from other possible errors) and the test input discarded. Operations that involve this include ASH, DPB, EXPT, and possibly * and LCM. It may also be useful to do this on RATIO values, if the numerator or denominator become too large.

summary: - Avoid memory exhaustion on ASH and DPB
+ Avoid memory exhaustion on ASH and DPB and other arithmetic operations
Paul F. Dietz (paul-f-dietz) wrote :

I see I can catch this condition, it being a storage-condition, not an error. So this ticket requires no action.

Changed in sbcl:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers