-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Milestone
Description
With this program eval(jc, "-[>-[>-<-]<-]<-]".into()), the brainfuck interpreter panics, because it sees an unknown symbol at the program counter (garbage memory)
With eval(jc, "-[>-[>-[>-<-]<-]<-]<-]".into()) - the program receives a SIGSEGV, caused by a read of one byte before an allocated page.
I'll try to run these with ASAN and report the results
EDIT: I can't build with ASAN, because . Brainfart, I need to pass the kernel32-sys fails to link--target flag, but holyjit also fails to link.
EDIT2: I just realized the brackets in these programs are mismatched, which means bounds checks aren't emitted properly under jit!()
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels