CoreRegs::default()
causes stack overflow
#40
Labels
bug
Something isn't working
*portability*
Issues affecting VM portability
upstream
Issues blocked by changes that has to be implemented/accepted at upstream
Milestone
Current Behavior
fails with
Cause
https://github.com/internet2-org/rust-aluvm/blob/a7e64abd4a7058bf9f06886452147810b4a5cf6d/src/reg/core_regs.rs#L99
With
Box<[LibSite; CALL_STACK_SIZE]>
, the value would be allocated to stack first, butCALL_STACK_SIZE = 1 << 16
is too big, resuting in overflow.Possible Solutions
Use
Vec<LibSite>
instead.Related Issues
rust-lang/rust#53827
The text was updated successfully, but these errors were encountered: