tinycc-devel
[Top][All Lists]
Advanced

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

[Tinycc-devel] [PATCH] tcc -E falls into a loop and runs out of memory w


From: Joshua Phillips
Subject: [Tinycc-devel] [PATCH] tcc -E falls into a loop and runs out of memory with vim7.1, osdef0.c
Date: Thu, 29 Nov 2007 22:24:12 +0000
User-agent: KMail/1.9.7

Compiling vim 7.1:
tcc -E infinitely loops and runs out of memory, when preprocessing osdef0.c
This is due to macro_subst_tok (tcc.c:3271) not checking for TOK_LINEFEED when 
PARSE_FLAG_LINEFEED is enabled.

Attached is a very small patch (vim 7.1 now compiler :) ), which I haven't 
tested extensively, but fixes this problem.

Later, it might be better to make the lexer actually move past the 
TOK_LINEFEED implicitly (tcc.c:2704) - this would be a cleaner solution.

Attachment: preprocess-fix.patch
Description: Text Data


reply via email to

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