mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2025-08-17 17:05:50 +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.data = (char*) (videoPacket + 1);
|
||||||
currentPos.offset = 0;
|
currentPos.offset = 0;
|
||||||
currentPos.length = length;
|
currentPos.length = length - sizeof(*videoPacket);
|
||||||
|
|
||||||
if (currentPos.length == 968) {
|
if (currentPos.length == 968) {
|
||||||
if (videoPacket->packetIndex < videoPacket->totalPackets) {
|
if (videoPacket->packetIndex < videoPacket->totalPackets) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user