bugFreeciv - Bugs: bug #20777, Calling memset with size of...

 
 
Show feedback again

bug #20777: Calling memset with size of pointer rather than content

Submitted by:  None
Submitted on:  Wed 01 May 2013 09:30:56 AM UTC  
 
Category: aiSeverity: 3 - Normal
Priority: 5 - NormalStatus: Fixed
Assigned to: pepeto <pepeto>Originator Email: -unavailable-
Open/Closed: ClosedRelease: trunk
Operating System: GNU/LinuxPlanned Release: 2.3.5, 2.4.0, 2.5.0, 2.6.0

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Fri 24 May 2013 05:00:05 PM UTC, SVN revision 22888:

Fix erroneous usage of memset() in cma module.

Reported by Per Mathisen

See gna bug #20777

(Browse SVN revision 22888)

pepeto <pepeto>
Project MemberIn charge of this item.
Fri 24 May 2013 04:59:56 PM UTC, SVN revision 22887:

Fix erroneous usage of memset() in cma module.

Reported by Per Mathisen

See gna bug #20777

(Browse SVN revision 22887)

pepeto <pepeto>
Project MemberIn charge of this item.
Fri 24 May 2013 04:59:48 PM UTC, SVN revision 22886:

Fix erroneous usage of memset() in cma module.

Reported by Per Mathisen

See gna bug #20777

(Browse SVN revision 22886)

pepeto <pepeto>
Project MemberIn charge of this item.
Fri 24 May 2013 04:59:40 PM UTC, SVN revision 22885:

Fix erroneous usage of memset() in cma module.

Reported by Per Mathisen

See gna bug #20777

(Browse SVN revision 22885)

pepeto <pepeto>
Project MemberIn charge of this item.
Wed 15 May 2013 10:23:55 AM UTC, comment #1:

I confirm this, patch attached for all branches from S2_3 to trunk.

(file #17967)

pepeto <pepeto>
Project MemberIn charge of this item.
Wed 01 May 2013 09:30:56 AM UTC, original submission:

common/aicore/cm.c line 2107 can't be right. it memset()s a memory structure with the size of a pointer.

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #17967:  cm.diff added by pepeto (606B - text/x-patch)

 

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 None (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 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 24 May 2013 05:00:23 PM UTCpepetoStatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
    Tue 21 May 2013 07:31:19 AM UTCpepetoAssigned toNone=>pepeto
    Wed 15 May 2013 10:23:55 AM UTCpepetoAttached File-=>Added cm.diff, #17967
      StatusNone=>Ready For Test
      Planned Release=>2.3.5, 2.4.0, 2.5.0, 2.6.0
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup