mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2025-08-16 16:35:47 +00:00
Fix buffer overread
This commit is contained in:
parent
a290613190
commit
58c1771761
@ -127,7 +127,7 @@ void processRtpPayload(PNV_VIDEO_PACKET videoPacket, int length) {
|
||||
|
||||
currentPos.data = (char*) (videoPacket + 1);
|
||||
currentPos.offset = 0;
|
||||
currentPos.length = length;
|
||||
currentPos.length = length - sizeof(*videoPacket);
|
||||
|
||||
if (currentPos.length == 968) {
|
||||
if (videoPacket->packetIndex < videoPacket->totalPackets) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user