bugFreeciv - Bugs: bug #20086, in astr_vadd() [astring.c::164]:...

 
 
Show feedback again

bug #20086: in astr_vadd() [astring.c::164]: assertion '(size_t) -1 != new_len' failed.

Submitted by:  J. M. Gorbach <gorb>
Submitted on:  Mon 20 Aug 2012 01:47:20 PM UTC  
 
Category: generalSeverity: 3 - Normal
Priority: 5 - NormalStatus: Fixed
Assigned to: pepeto <pepeto>Open/Closed: Closed
Release: 2.3.2/2.4.0-beta1/trunkOperating System: Any
Planned Release: 2.4.0, 2.5.0

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 20 Feb 2013 09:28:10 AM UTC, SVN revision 22396:

Make astring buffer dynamically allocated and resizable.

Requested by J. M. Gorbach

See gna bug #20086

(Browse SVN revision 22396)

pepeto <pepeto>
Project MemberIn charge of this item.
Wed 20 Feb 2013 09:28:09 AM UTC, SVN revision 22395:

Make astring buffer dynamically allocated and resizable.

Requested by J. M. Gorbach

See gna bug #20086

(Browse SVN revision 22395)

pepeto <pepeto>
Project MemberIn charge of this item.
Sun 17 Feb 2013 09:49:44 AM UTC, comment #3:

>Does this patch also solve your problem?

Yes, problem solve. Thanks!

J. M. Gorbach <gorb>
Sun 17 Feb 2013 12:15:13 AM UTC, comment #2:

Does this patch also solve your problem?

(file #17229)

pepeto <pepeto>
Project MemberIn charge of this item.
Sat 26 Jan 2013 04:12:15 PM UTC, comment #1:

>Is it possible increase the buf for s2_4?

My scenario (lua script, ecc.) exceeds the value buf[65536].

(file #17029)

J. M. Gorbach <gorb>
Mon 20 Aug 2012 01:47:20 PM UTC, original submission:

256*256 (or 16*16*16*16) = 65536

static char buf[65536] in 2.3
static char buf[65536] in 2.4
static char buf[65536] in trunk v.21813

My scenario file: Formatted string bigger than 2 bytes.

I don't know if is a correct value, but I increased buf at 16777216 (256*256*256) and the error disappear. Maybe the correct value is 1048576 (16*16*16*16*16).

Is it possible increase the buf for s2_4?

J. M. Gorbach <gorb>

 

(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #17029:  europev2.5.sav.gz added by gorb (32kB - application/x-gzip)
file #16413:  limit_buf_trunk.patch added by gorb (537B - text/x-diff)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by pepeto (Updated the item)
  • -unavailable- added by gorb (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 9 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 20 Feb 2013 09:28:33 AM UTCpepetoStatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
    Mon 18 Feb 2013 10:02:35 AM UTCpepetoStatusIn Progress=>Ready For Test
    Sun 17 Feb 2013 10:02:47 AM UTCpepetoStatusNone=>In Progress
      Assigned toNone=>pepeto
      Planned Release=>2.4.0, 2.5.0
    Sun 17 Feb 2013 12:15:13 AM UTCpepetoAttached File-=>Added astr_buffer_resizable.diff, #17229
    Sat 26 Jan 2013 04:12:15 PM UTCgorbAttached File-=>Added europev2.5.sav.gz, #17029
    Mon 20 Aug 2012 01:47:20 PM UTCgorbAttached File-=>Added limit_buf_trunk.patch, #16413
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup