Re: [PATCH] Fix crash when accessing block header of immediate values in pretty-printer

2020-10-21 Thread Evan Hanson
On 2020-10-21 18:17, megane wrote: > Interesting.. How do you trigger this bug? Here's a simple way: #;1> (pp (block-ref 'aardvark 0)) Error: segmentation violation Call history: (pp (block-ref (quote aardvark) 0))

Re: [PATCH] Fix crash when accessing block header of immediate values in pretty-printer

2020-10-21 Thread megane
Evan Hanson writes: > This fixes a segmentation fault when pretty-printing C_SCHEME_UNBOUND, > since we reach into the value with C_block_header() in C_anypointerp() > before checking for C_unboundvaluep(). This crashes, since unbound is an > immediate value. > > In addition to moving the call

[PATCH] Fix crash when accessing block header of immediate values in pretty-printer

2020-10-21 Thread Evan Hanson
This fixes a segmentation fault when pretty-printing C_SCHEME_UNBOUND, since we reach into the value with C_block_header() in C_anypointerp() before checking for C_unboundvaluep(). This crashes, since unbound is an immediate value. In addition to moving the call to C_unboundvaluep() above the