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:
parent
06ce63f421
commit
7a3219d8f9
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue