[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fixes segfault in beam quanting. (issue4339047)
From: |
Werner LEMBERG |
Subject: |
Re: Fixes segfault in beam quanting. (issue4339047) |
Date: |
Mon, 04 Apr 2011 05:43:40 +0200 (CEST) |
>>> The worst which can happen is that a value is incorrectly
>>> type-cast which leads to either a null dereference or some other
>>> type assertion.
>>
>> Could you give a Scheme example for that, please?
>
> Typical examples:
>
> * scm_cdr(SCM_EOL)
>
> This basically dereferences an (almost) null pointer. Possibly,
> this crashes neatly in debug mode (I'm not sure). The SCM_CDR()
> variant will surely crash with segmentation fault.
There is a misunderstanding. I was rather talking about Scheme code
entered by the user. The above is a programming error, isn't it?
> * unsmob_grob(x)->foo()
>
> If x is not a grob, unsmob_grob(x) returns NULL. Boom.
This looks like a programming error too...
I don't understand why you think that such situations shouldn't be
fixed in the source code.
Werner
- Re: Fixes segfault in beam quanting. (issue4339047), (continued)
- Re: Fixes segfault in beam quanting. (issue4339047), Werner LEMBERG, 2011/04/03
- Re: Fixes segfault in beam quanting. (issue4339047), Trevor Daniels, 2011/04/03
- Re: Fixes segfault in beam quanting. (issue4339047), Graham Percival, 2011/04/03
- Re: Fixes segfault in beam quanting. (issue4339047), Werner LEMBERG, 2011/04/03
- Re: Fixes segfault in beam quanting. (issue4339047), address@hidden, 2011/04/03
- Re: Fixes segfault in beam quanting. (issue4339047), Trevor Daniels, 2011/04/03
- Re: Fixes segfault in beam quanting. (issue4339047), Han-Wen Nienhuys, 2011/04/03
- Re: Fixes segfault in beam quanting. (issue4339047), Werner LEMBERG, 2011/04/03
- Re: Fixes segfault in beam quanting. (issue4339047), Graham Percival, 2011/04/03
- Re: Fixes segfault in beam quanting. (issue4339047), Han-Wen Nienhuys, 2011/04/03
- Re: Fixes segfault in beam quanting. (issue4339047),
Werner LEMBERG <=
- Re: Fixes segfault in beam quanting. (issue4339047), Han-Wen Nienhuys, 2011/04/04
- Re: Fixes segfault in beam quanting. (issue4339047), Trevor Daniels, 2011/04/04
- Re: Fixes segfault in beam quanting. (issue4339047), address@hidden, 2011/04/04
Re: Fixes segfault in beam quanting. (issue4339047), percival . music . ca, 2011/04/02
Re: Fixes segfault in beam quanting. (issue4339047), mtsolo, 2011/04/02
Re: Fixes segfault in beam quanting. (issue4339047), hanwenn, 2011/04/04