Skip to content

Commit

Permalink
Fix oss-fuzz issue 64237 (#1244)
Browse files Browse the repository at this point in the history
  • Loading branch information
sashashura authored Nov 21, 2023
1 parent 762c7fd commit 5f1895a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Packet++/src/NtpLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,8 @@ namespace pcpp
return "A step change in system time has occurred, but the association has not yet resynchronized";
default:
{
char arrBuff[4] = {static_cast<char>((refID >> 24) & 0xFF), static_cast<char>((refID >> 16) & 0xFF),
static_cast<char>((refID >> 8) & 0xFF), static_cast<char>((refID) & 0xFF)};
char arrBuff[5] = {static_cast<char>((refID >> 24) & 0xFF), static_cast<char>((refID >> 16) & 0xFF),
static_cast<char>((refID >> 8) & 0xFF), static_cast<char>((refID) & 0xFF), '\0'};
return arrBuff;
}
}
Expand Down

0 comments on commit 5f1895a

Please sign in to comment.