Skip to content

Commit

Permalink
Fixed memory access after delete in Domain Server
Browse files Browse the repository at this point in the history
  • Loading branch information
ksuprynowicz committed Jul 18, 2022
1 parent 44702b3 commit ac10b96
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libraries/embedded-webserver/src/HTTPConnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
//
// Created by Stephen Birarda on 1/16/14.
// Copyright 2014 High Fidelity, Inc.
// Copyright 2022 Overte e.V.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
Expand Down Expand Up @@ -196,7 +197,7 @@ QList<FormData> HTTPConnection::parseFormData() const {
qWarning() << "Missing end boundary." << _address;
return data;
}
datum.second = QByteArray::fromRawData(_requestContent->content().data() + buffer.pos(),
datum.second = QByteArray(_requestContent->content().data() + buffer.pos(),
idx - buffer.pos());
data.append(datum);
buffer.seek(idx + end.length());
Expand Down

0 comments on commit ac10b96

Please sign in to comment.