Skip to content

Commit

Permalink
Fix undefined behavior due to use of uninitialized field in Buffer (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
PragmaTwice authored Nov 15, 2023
1 parent 6d72762 commit 3124129
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/fury/util/buffer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ Buffer::Buffer() {
}

Buffer::Buffer(Buffer &&buffer) noexcept {
if (own_data_) {
delete data_;
data_ = nullptr;
}
data_ = buffer.data_;
size_ = buffer.size_;
own_data_ = buffer.own_data_;
Expand Down

0 comments on commit 3124129

Please sign in to comment.