#2191 gather: long vm names cause buffer overflow

Memory_Leak
closed-fixed
5
2011-06-18
2011-04-19
No

Long virtual machine names (~25 characters or more) overflow the allocated buffers corrupting memory and segfaulting gatherd. There are two realloc calls in metricVirt.c that neglect the data type size of (char *) when calculating buffer size, and result in an undersized buffer allocation.

Discussion

  • Tyrel Datwyler

    Tyrel Datwyler - 2011-04-19

    Patch attached.

    Committed to CVS Head.

     
  • Tyrel Datwyler

    Tyrel Datwyler - 2011-04-19
    • status: open --> pending-fixed
     
  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 60 days (the time period specified by
    the administrator of this Tracker).

     
  • SourceForge Robot

    • status: pending-fixed --> closed-fixed
     

Log in to post a comment.