Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sashashura committed Nov 11, 2023
1 parent 0c95dfb commit 84ae41c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Packet++/src/SomeIpSdLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ bool SomeIpSdLayer::isDataValid(const uint8_t* data, size_t dataLen)
{
if (!data ||
dataLen < sizeof(someipsdhdr) + sizeof(uint32_t) ||
dataLen < sizeof(someipsdhdr) + sizeof(uint32_t) + getLenEntries(data) ||
dataLen < sizeof(someipsdhdr) + sizeof(uint32_t) + getLenEntries(data) + sizeof(uint32_t) ||
dataLen < be32toh(*((uint32_t *)(data + sizeof(someipsdhdr) + sizeof(uint32_t) + getLenEntries(data)))))
{
return false;
Expand Down

0 comments on commit 84ae41c

Please sign in to comment.