diff options
author | Bastien Montagne <bastien@blender.org> | 2020-06-05 15:43:44 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2020-06-05 15:54:54 +0300 |
commit | 67b17684e699edc3bbd303420c86e31b6af7007f (patch) | |
tree | 94ba4fb666badf3607fe22d113da310ba5343305 /source/blender/editors/include | |
parent | ff5d24f8bec4b76780200196749f949c56445b7e (diff) |
Fix T77396: crash in memfile undo code after recent optimizations.
Optimizations in rBcda15408582e8de5b405 do not guarantee anymore that
consecutive memchunks in two consecutive undo steps are actually about
the same data (and hence can share the same buffer when unchanged).
This buffer sharing can now happen without any particular order, so we
need to change the process when 'merging' two undo memfiles together.
Note that existing code was not logically correct either, even with
previous undo storage code, since it would blindly transfer ownership of
the buffer to the second memchunk, without checking whether the first
one was actually the owner of it or not (a same buffer can be shared by
matching memchunks in many consecutive memfiles/undo steps).
Diffstat (limited to 'source/blender/editors/include')
0 files changed, 0 insertions, 0 deletions