forked from arkime/arkime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix incorrect UDP data length when UDP packet shorter than minimum et…
…hernet packet length (arkime#2791) * Fix incorrect UDP data length * Add a MIN call to prevent buffer overflow
- Loading branch information
1 parent
f7cbe1f
commit b17c5ac
Showing
3 changed files
with
88 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
{ | ||
"sessions3" : [ | ||
{ | ||
"body" : { | ||
"@timestamp" : "SET", | ||
"client" : { | ||
"bytes" : 1 | ||
}, | ||
"destination" : { | ||
"bytes" : 0, | ||
"geo" : { | ||
"country_iso_code" : "RU" | ||
}, | ||
"ip" : "1.2.3.4", | ||
"mac" : [ | ||
"fe:dc:ba:98:76:54" | ||
], | ||
"mac-cnt" : 1, | ||
"packets" : 0, | ||
"port" : 12345 | ||
}, | ||
"dstRIR" : "APNIC", | ||
"fileId" : [], | ||
"firstPacket" : 1715858838018, | ||
"ipProtocol" : 17, | ||
"lastPacket" : 1715858838018, | ||
"length" : 0, | ||
"network" : { | ||
"bytes" : 60, | ||
"community_id" : "1:8qMDOtieYDvO6jsAKvncvGwV0F8=", | ||
"packets" : 1 | ||
}, | ||
"node" : "test", | ||
"packetLen" : [ | ||
76 | ||
], | ||
"packetPos" : [ | ||
24 | ||
], | ||
"protocol" : [ | ||
"udp" | ||
], | ||
"protocolCnt" : 1, | ||
"segmentCnt" : 1, | ||
"server" : { | ||
"bytes" : 0 | ||
}, | ||
"source" : { | ||
"as" : { | ||
"full" : "AS6805 Telefonica Germany", | ||
"number" : 6805, | ||
"organization" : { | ||
"name" : "Telefonica Germany" | ||
} | ||
}, | ||
"bytes" : 60, | ||
"geo" : { | ||
"country_iso_code" : "DE" | ||
}, | ||
"ip" : "5.6.7.8", | ||
"mac" : [ | ||
"01:23:45:67:89:ab" | ||
], | ||
"mac-cnt" : 1, | ||
"packets" : 1, | ||
"port" : 43444 | ||
}, | ||
"srcPayload8" : "31", | ||
"srcRIR" : "RIPE", | ||
"totDataBytes" : 1 | ||
}, | ||
"header" : { | ||
"index" : { | ||
"_index" : "tests_sessions3-240516" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
|