<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>13747</bug_id>
          
          <creation_ts>2007-12-18 17:52:11 +0300</creation_ts>
          <short_desc>Fix for buffer overflow in the latest cacti-spine</short_desc>
          <delta_ts>2008-03-13 23:57:41 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>cacti-cactid</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dmitry Lebkov">dlebkov</reporter>
          <assigned_to name="Slava Dubrovskiy">dubrsl</assigned_to>
          <cc>mike</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>59713</commentid>
    <comment_count>0</comment_count>
    <who name="Dmitry Lebkov">dlebkov</who>
    <bug_when>2007-12-18 17:52:12 +0300</bug_when>
    <thetext>See poller.c, lines 101 and 485:

101:  char sysUptime[40];

483: }else{
484:   poll_result = snmp_get(host, reindex-&gt;arg1);
485:   snprintf(sysUptime, BUFSIZE, &quot;%s&quot;, poll_result);
486: }


Quick fix: set size of sysUptime array to BUFSIZE.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59990</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2007-12-25 17:00:02 +0300</bug_when>
    <thetext>Дим, запрашивай у ldv@ NMU, наверное.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59993</commentid>
    <comment_count>2</comment_count>
    <who name="Slava Dubrovskiy">dubrsl</who>
    <bug_when>2007-12-25 17:28:56 +0300</bug_when>
    <thetext>Ой, забыл совсем про это. Сделаю.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59995</commentid>
    <comment_count>3</comment_count>
    <who name="Slava Dubrovskiy">dubrsl</who>
    <bug_when>2007-12-25 17:35:41 +0300</bug_when>
    <thetext>(In reply to comment #0)
&gt; See poller.c, lines 101 and 485:
&gt; 
&gt; 101:  char sysUptime[40];
&gt; 
&gt; 483: }else{
&gt; 484:   poll_result = snmp_get(host, reindex-&gt;arg1);
&gt; 485:   snprintf(sysUptime, BUFSIZE, &quot;%s&quot;, poll_result);
&gt; 486: }
&gt; 
&gt; 
&gt; Quick fix: set size of sysUptime array to BUFSIZE.
Можно объяснить что куда поставить?
Я не знаю С :-(
А искать долго.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59996</commentid>
    <comment_count>4</comment_count>
    <who name="Slava Dubrovskiy">dubrsl</who>
    <bug_when>2007-12-25 17:39:52 +0300</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #0)
&gt; &gt; See poller.c, lines 101 and 485:
&gt; &gt; 
&gt; &gt; 101:  char sysUptime[40];
&gt; &gt; 
&gt; &gt; 483: }else{
&gt; &gt; 484:   poll_result = snmp_get(host, reindex-&gt;arg1);
&gt; &gt; 485:   snprintf(sysUptime, BUFSIZE, &quot;%s&quot;, poll_result);
&gt; &gt; 486: }
&gt; &gt; 
&gt; &gt; 
&gt; &gt; Quick fix: set size of sysUptime array to BUFSIZE.
&gt; Можно объяснить что куда поставить?
&gt; Я не знаю С :-(
&gt; А искать долго.
Я правильно понимаю, что
subst &quot;s|char sysUptime\[40\]|char sysUptime\[BUFSIZE\]|g&quot; poller.c
будет достаточно?
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59997</commentid>
    <comment_count>5</comment_count>
    <who name="Slava Dubrovskiy">dubrsl</who>
    <bug_when>2007-12-25 17:49:46 +0300</bug_when>
    <thetext>fixed in 0.8.7a-alt2</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>