Segmentation fault on 2.0.5
Maria Jan Matejka
jan.matejka at nic.cz
Tue Aug 13 16:45:22 CEST 2019
>> define myvar = false;
>>
>> function something () {
>> if myvar then {
>> return false;
>> }
>>
>> return true;
>> }
>>
>> protocol device DEVICE {
>>
>> }
>>
>> Could this be because of the new filter code or something else?
>
> Hello
>
> Thanks for bugreport. Yes, it is the new filter code, most likely
> it is a bug in handling of statically eliminable (constant-false)
> if statements without else branch.
>
> Similar issue also happens for empty blocks:
>
> if true then { }
>
What about the attached patch?
Maria
-------------- next part --------------
A non-text attachment was scrubbed...
Name: empty-block.patch
Type: text/x-patch
Size: 1658 bytes
Desc: not available
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20190813/a454fb2c/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3055 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20190813/a454fb2c/attachment.p7s>
More information about the Bird-users
mailing list