mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 12:08:54 +02:00
force a negative to in ATP byte range to be invalid
This commit is contained in:
parent
06ce63f421
commit
7a3219d8f9
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ void SendAssetTask::run() {
|
||||||
|
|
||||||
replyPacketList->writePrimitive(messageID);
|
replyPacketList->writePrimitive(messageID);
|
||||||
|
|
||||||
if (byteRange.toExclusive < byteRange.fromInclusive) {
|
if (byteRange.toExclusive < byteRange.fromInclusive || byteRange.toExclusive < 0) {
|
||||||
replyPacketList->writePrimitive(AssetServerError::InvalidByteRange);
|
replyPacketList->writePrimitive(AssetServerError::InvalidByteRange);
|
||||||
} else {
|
} else {
|
||||||
QString filePath = _resourcesDir.filePath(QString(hexHash));
|
QString filePath = _resourcesDir.filePath(QString(hexHash));
|
||||||
|
|
Loading…
Reference in a new issue