FreeBSD Bugzilla – Attachment 108045 Details for
Bug 148858
[PATCH] security/chaosreader: fix "devision by zero" error
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.23 KB, created by
Artem Naluzhny
on 2010-07-23 09:50:03 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Artem Naluzhny
Created:
2010-07-23 09:50:03 UTC
Size:
1.23 KB
patch
obsolete
>diff -ruN chaosreader.bak/Makefile chaosreader/Makefile >--- chaosreader.bak/Makefile 2009-09-03 02:59:45.000000000 +0300 >+++ chaosreader/Makefile 2010-07-23 11:38:48.000000000 +0300 >@@ -7,10 +7,12 @@ > > PORTNAME= chaosreader > PORTVERSION= 0.94 >+PORTREVISION= 1 > CATEGORIES= security > MASTER_SITES= SF > DISTFILES= ${PORTNAME}${PORTVERSION} sshkeydata0.20 > EXTRACT_ONLY= >+NO_WRKSUBDIR= yes > > MAINTAINER= pauls@utdallas.edu > COMMENT= A tool to extract data from tcpdump logs >diff -ruN chaosreader.bak/files/patch-chaosreader chaosreader/files/patch-chaosreader >--- chaosreader.bak/files/patch-chaosreader 1970-01-01 02:00:00.000000000 +0200 >+++ chaosreader/files/patch-chaosreader 2010-07-23 11:22:10.000000000 +0300 >@@ -0,0 +1,15 @@ >+--- chaosreader.orig 2010-07-23 11:18:46.000000000 +0300 >++++ chaosreader 2010-07-23 11:21:34.000000000 +0300 >+@@ -4028,7 +4028,11 @@ >+ ### This causes the replay program to pause >+ print REPLAY "ms($timediff1);\n"; >+ } >+- $speed = sprintf("%.2f",$bytes / (1024 * $duration)); >++ if ( $duration > 0 ) { >++ $speed = sprintf("%.2f",$bytes / (1024 * $duration)); >++ } else { >++ $speed = "unknown"; >++ } >+ print REPLAY "print \"\n\n" . >+ "Summary: $duration2 seconds, $bytes bytes, $speed Kb/sec\\n\";"; >+ close REPLAY;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 148858
: 108045