[futurebasic] Re: [FB] GCC/FBtoC weird one

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : December 2011 : Group Archive : Group : All Groups

From: Brian S <fblistserve@...>
Date: Sun, 25 Dec 2011 23:24:45 -0700
On Dec 25, 2011, at 6:57 PM, Robert Covington wrote:

> 
> On Dec 25, 2011, at 8:33 PM, Robert Purves wrote:
> 
>> 
>> Brian S wrote:
>> 
>>>> I got FBToC error : Buffer Overflow in AppendToBuf
>>> 
>>> This is the buffer used to send unix commands ( mv, cp etc. ). The unix commands use the path to file being processed. Currently that buffer is set to 4k which would seem to handle most long path names.
>> 
>> Probably overflowed during the link step, which enumerates every object file in the one unix command. It would be reasonable to increase the buffer to 8 KB.
>> 
>> Robert P. 
> 
> I recall that the error occurred when "linking" had just shown up in the log/status...so that should clear it up. Thanks.

Thanks Robert P. for explaining that every file is enumerated ( logically they all have to be there ) in the link step with one unix command. That does explain a lot given the large number of files in the OP’s project. The buffer size has been increased to 8KB in the current beta.

Brian S