3
0
Fork 0
mirror of https://github.com/lubosz/overte.git synced 2025-04-26 11:15:23 +02:00

force a negative to in ATP byte range to be invalid

This commit is contained in:
Stephen Birarda 2017-04-18 10:37:15 -07:00 committed by Atlante45
parent 06ce63f421
commit 7a3219d8f9

View file

@ -60,7 +60,7 @@ void SendAssetTask::run() {
replyPacketList->writePrimitive(messageID);
if (byteRange.toExclusive < byteRange.fromInclusive) {
if (byteRange.toExclusive < byteRange.fromInclusive || byteRange.toExclusive < 0) {
replyPacketList->writePrimitive(AssetServerError::InvalidByteRange);
} else {
QString filePath = _resourcesDir.filePath(QString(hexHash));