chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Evan Hanson
Subject: Re: [PATCH] Fix crash when accessing block header of immediate values in pretty-printer
Date: Thu, 22 Oct 2020 09:22:47 +1300

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:
    
            <syntax>          (pp (block-ref (quote aardvark) 0))
            <syntax>          (block-ref (quote aardvark) 0)
            <syntax>          (quote aardvark)
            <syntax>          (##core#quote aardvark)
            <eval>    (pp (block-ref (quote aardvark) 0))
            <eval>    (block-ref (quote aardvark) 0)        <--

I don't know how else #<unbound> can spring to life, but there might
be other ways? Of course one probably shouldn't do this, but we still
shouldn't segfault.

Evan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]