Dear All,
I wrote a scotty script that monitors devices using the icmp scotty command. It
worked, but after a modify it started to crash, while running the "icmp echo",
with signal 11 Segmentation fault.
I have analyzed the source code and have discovered a possible bug.
The possible bug is referred the scotty version 2.1.9, but I verified is
present in the version 2.1.10.
The line 115 of the file scotty-2.1.9/tnm/generic/tnmIcmp.c:
icmpPtr->targets = (TnmIcmpTarget *) icmpPtr + sizeof(TnmIcmpRequest);
should be changed as:
icmpPtr->targets =
(TnmIcmpTarget *) ((char *) icmpPtr + sizeof(TnmIcmpRequest));
Any comment will be welcome!
Thanks
Dario Palmisano
##################################################################
# Dario Palmisano # E-Mail: Dario.Palmisano@Area.Trieste.It #
# Progetto Reti # Voice : +39 040 3755210 #
# AREA Science Park # Fax : +39 040 226698 #
# Padriciano, 99 # Mobile: 0335 7769993 #
# 34012 Trieste Italy # #
##################################################################
# Date: 10-Jan-01 # Time: 08:58:00 #
##################################################################
-- !! This message is brought to you via the `tkined & scotty' mailing list. !! Please do not reply to this message to unsubscribe. To subscribe or !! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>. !! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.
This archive was generated by hypermail 2b29 : Thu Jan 03 2002 - 14:56:26 MET