Skip to content

Commit

Permalink
Fixed memory corruption / actual crashes on Window
Browse files Browse the repository at this point in the history
Fixed memory corruption caused by missing assignment operator with non-trivial copy constructor logic.
FIxes crashes on Windows when "dwaa" or "dwab" codecs are used for saving files.
  • Loading branch information
JuriAbramov authored and nickrasmussen committed Aug 8, 2018
1 parent 4a00a9b commit c330c40
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions OpenEXR/IlmImf/ImfDwaCompressorSimd.h
Expand Up @@ -93,6 +93,12 @@ class SimdAlignedBuffer64
memcpy (_buffer, rhs._buffer, 64 * sizeof (T));
}

SimdAlignedBuffer64 &operator=(const SimdAlignedBuffer64 &rhs)
{
memcpy (_buffer, rhs._buffer, 64 * sizeof (T));
return *this;
}

~SimdAlignedBuffer64 ()
{
EXRFreeAligned (_handle);
Expand Down

0 comments on commit c330c40

Please sign in to comment.