Skip to content

Commit

Permalink
Fix critical LUt memory bug
Browse files Browse the repository at this point in the history
  • Loading branch information
awawa-dev committed Feb 11, 2024
1 parent 5af3e18 commit e5da883
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sources/base/Grabber.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ void Grabber::loadLutFile(PixelFormat color, const QList<QString>& files)

file.seek(index);

_lut.resize(length + 4);
_lut.resize(LUT_FILE_SIZE + 64);

if (file.read((char*)_lut.data(), LUT_FILE_SIZE) != LUT_FILE_SIZE)
{
Expand Down
2 changes: 1 addition & 1 deletion sources/flatbufserver/FlatBufferServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ void FlatBufferServer::loadLutFile()

file.seek(index);

_lut.resize(length + 4);
_lut.resize(LUT_FILE_SIZE + 64);

if (file.read((char*)_lut.data(), LUT_FILE_SIZE) != LUT_FILE_SIZE)
{
Expand Down

0 comments on commit e5da883

Please sign in to comment.