Commit cca9b955 authored by Darshan Sen's avatar Darshan Sen Committed by Node.js GitHub Bot
Browse files

dgram: add `nread` assertion to `UDPWrap::OnRecv`



This asserts that the number of bytes received by the socket is less
than or equal to the size allocated for the temporary storage.

Signed-off-by: default avatarDarshan Sen <darshan.sen@postman.com>

PR-URL: https://github.com/nodejs/node/pull/40295


Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
Reviewed-By: default avatarAnna Henningsen <anna@addaleax.net>
Reviewed-By: default avatarMinwoo Jung <nodecorelab@gmail.com>
parent 77231487
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment