mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 09:08:47 +02:00
Fixed memory access after delete in Domain Server
This commit is contained in:
parent
44702b3e26
commit
ac10b96882
1 changed files with 2 additions and 1 deletions
|
@ -4,6 +4,7 @@
|
||||||
//
|
//
|
||||||
// Created by Stephen Birarda on 1/16/14.
|
// Created by Stephen Birarda on 1/16/14.
|
||||||
// Copyright 2014 High Fidelity, Inc.
|
// Copyright 2014 High Fidelity, Inc.
|
||||||
|
// Copyright 2022 Overte e.V.
|
||||||
//
|
//
|
||||||
// Distributed under the Apache License, Version 2.0.
|
// Distributed under the Apache License, Version 2.0.
|
||||||
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
|
@ -196,7 +197,7 @@ QList<FormData> HTTPConnection::parseFormData() const {
|
||||||
qWarning() << "Missing end boundary." << _address;
|
qWarning() << "Missing end boundary." << _address;
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
datum.second = QByteArray::fromRawData(_requestContent->content().data() + buffer.pos(),
|
datum.second = QByteArray(_requestContent->content().data() + buffer.pos(),
|
||||||
idx - buffer.pos());
|
idx - buffer.pos());
|
||||||
data.append(datum);
|
data.append(datum);
|
||||||
buffer.seek(idx + end.length());
|
buffer.seek(idx + end.length());
|
||||||
|
|
Loading…
Reference in a new issue