Skip to content

Commit

Permalink
fix(UDPSocketReader): resolve security warnings reported by CodeQL
Browse files Browse the repository at this point in the history
  • Loading branch information
matejk committed Jun 10, 2024
1 parent 1739979 commit 32b2f72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Net/include/Poco/Net/UDPSocketReader.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ class UDPSocketReader
if (p)
{
Poco::UInt16 off = handler().payloadOffset();
auto* pAL = reinterpret_cast<poco_socklen_t*>(p + handler().addressLengthOffset());
pAL = reinterpret_cast<poco_socklen_t*>(p + handler().addressLengthOffset());
*pAL = SocketAddress::MAX_ADDRESS_LENGTH;
struct sockaddr* pSA = reinterpret_cast<struct sockaddr*>(p + handler().addressOffset());
pSA = reinterpret_cast<struct sockaddr*>(p + handler().addressOffset());
RT ret = sock.receiveFrom(p + off, S - off - 1, &pSA, &pAL);
if (ret < 0)
{
Expand Down

0 comments on commit 32b2f72

Please sign in to comment.