moor icon indicating copy to clipboard operation
moor copied to clipboard

Handling for MAXINT/MAXOBJ in various opcodes

Open github-actions[bot] opened this issue 4 months ago • 0 comments

Given we're 64-bit this is highly unlikely to ever be a concern for us, but

we also don't want to *crash* on obscene values, so impl that here.

https://github.com/rdaum/moor/blob/47435a1442a1f5532c23944029e90982baa99bff/crates/kernel/src/vm/vm_execute.rs#L261


                    let (from, next_val) = {
                        let (to, from) = f.peek2();

                        // TODO: Handling for MAXINT/MAXOBJ in various opcodes
                        //   Given we're 64-bit this is highly unlikely to ever be a concern for us, but
                        //   we also don't want to *crash* on obscene values, so impl that here.


github-actions[bot] avatar Feb 10 '24 01:02 github-actions[bot]