summaryrefslogtreecommitdiff
path: root/libutils/Unicode.cpp
diff options
context:
space:
mode:
authorDavid Anderson <dvander@google.com>2021-04-02 16:04:22 -0700
committerDaniel Rosenberg <drosen@google.com>2021-04-12 21:52:06 -0700
commitdb25e8e32d0c080d7b4e3baad4efe132410a5ee6 (patch)
tree1d0e24d9d2e31ad0216e51c7520c5a8c9b8f47b2 /libutils/Unicode.cpp
parent9a95ed928fe711ed915fa17b502259a360417a88 (diff)
libsnapshot: Fix premature truncation in CowWriter.
When opening in append mode, we ftruncate() the COW. This has three side effects: (1) If the COW is never modified, or Finalized(), the state of the COW will have changed. Ideally it should only change on an explicit write operation. (2) Data after the current cluster will be accidentally thrown away. (3) The ending "cluster" op will be thrown away if the current cluster was incomplete, and thus the last valid label could be invalidated. Bug: 183985866 Test: cow_api_test Change-Id: I3c9a38553b7492a3d6e71d177d75ddb1b6490dfe
Diffstat (limited to 'libutils/Unicode.cpp')
0 files changed, 0 insertions, 0 deletions