[prev in list] [next in list] [prev in thread] [next in thread] 

List:       net-snmp-bugs
Subject:    [ net-snmp-Bugs-3118631 ] snmptable segfaults if returned content
From:       "SourceForge.net" <noreply () sourceforge ! net>
Date:       2010-11-25 17:36:51
Message-ID: E1PLfkZ-0005HQ-Ta () sfs-web-5 ! v29 ! ch3 ! sourceforge ! com
[Download RAW message or body]

Bugs item #3118631, was opened at 2010-11-25 12:36
Message generated for change (Tracker Item Submitted) made by zaccampbell
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112694&aid=3118631&group_id=12694

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: apps
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: azemute (zaccampbell)
Assigned to: Nobody/Anonymous (nobody)
Summary: snmptable segfaults if returned content contains : character

Initial Comment:
When generating smtptable results, if any of the results contain a : within the data \
that's returned and no further . is found after that :, a segfault is caused.


name_p: ':virtualserverNumber.0'
name_p: ':virtualserverName."hotelmap.com"'
name_p: ':virtualserverName."internalsite"'
name_p: ':virtualserverName."livesite SSL"'
name_p: ':virtualserverName."Mysql Cluster"'
name_p: ':virtualserverName."londonmonthly"'
name_p: ':virtualserverName."londonmarketing"'
name_p: ':80"'
Segmentation fault

As you can see, in the line preceeding the Segfault, the returned data is along the \
lines of name:80 (in this case signifying that it's a port80 vserver).  snmptable \
(and I assume some other tools that I've experienced segfaults with) reads from the \
last : presented, and then crashes when it cannot find a period.

The attached patch does resolve this behavior, however, will return bad data cases \
where there's extra colons present.  Obviously, the desired behavior would be to \
throw an error if it cannot find a ., as opposed to segfaulting.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112694&aid=3118631&group_id=12694

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Net-snmp-bugs mailing list
Net-snmp-bugs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-bugs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic