Re: bison news - Mailing list pgsql-hackers

From Tom Lane
Subject Re: bison news
Date
Msg-id 6504.1029856201@sss.pgh.pa.us
Whole thread Raw
In response to bison news  (Michael Meskes <meskes@postgresql.org>)
Responses Re: bison news  (Michael Meskes <meskes@postgresql.org>)
List pgsql-hackers
Michael Meskes <meskes@postgresql.org> writes:
> I just got the latest beta and it compiles ecpg grammar correctly!

This is good.  Any word on when it will go to an official release?

BTW, I spent some time looking at the problem, and it seems the issue
is not overrun of any bison internal table, but failure to compress the
resulting "action table" into 32K entries.  This means that the required
expansion from short to int is not just a cost paid while you run bison;
the actual table in the ecpg executable will double in size.  I trust
they did not fix the problem in a way that causes *every* generated
parser to use an int[] rather than short[] action table ...

Also, it seemed to me that the most leverage on the size of the
compressed action table would be gained by reducing the number of
terminal symbols, more so than the number of rules.  Dunno if there
is a lot you can do about that, but it's a thought.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tatsuo Ishii
Date:
Subject: Re: @(#) Mordred Labs advisory 0x0001: Buffer overflow
Next
From: Tom Lane
Date:
Subject: Re: @(#) Mordred Labs advisory 0x0001: Buffer overflow in