Menu

#2255 gather: large network counters overflow raw metric buffer

Stability
pending-fixed
5
2011-08-19
2011-08-19
No

The IPPortocolEndpoint and NetworkPort plugins collect raw network counters from /proc/net/dev. The string array allocated for these raw metrics is based on an ULL datatype size and not the maximum possible characters required to represent these numbers. Large counters result in a buffer overflow and generally a segfault.

Discussion

  • Tyrel Datwyler

    Tyrel Datwyler - 2011-08-19

    Allocate string buffers basec on maximum number of characters required to represent a unsinged long long

     
  • Tyrel Datwyler

    Tyrel Datwyler - 2011-08-19

    Committed to CVS.

     
  • Tyrel Datwyler

    Tyrel Datwyler - 2011-08-19
    • status: open --> pending-fixed
     

Log in to post a comment.