chicken-hackers
[Top][All Lists]
Advanced

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

[Chicken-hackers] [PATCH] Signal read errors on unterminated string lite


From: Evan Hanson
Subject: [Chicken-hackers] [PATCH] Signal read errors on unterminated string literals ending with '\'
Date: Sat, 21 Dec 2013 20:41:30 +1300

Hi all,

This fixes a small bug triggered by unterminated string literals ending
with '\':

    $ printf '"\\' | csi -e '(read)'
    [panic] Low-level type assertion 
C_charp(C_VAL1(((long*)((long*)t0)[6])[1]))=#t failed at library.c:17051 - 
execution terminated
    ...

That assertion fails due to attempting to treat EOF as a character; this
patch just adds a check for EOFs inside \-escape sequences in strings.

Cheers,

Evan

Attachment: 0001-Signal-read-errors-on-unterminated-string-literals-e.patch
Description: Text document


reply via email to

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