`TempDir::new_in` passed the root to `tempfile` as given, so when the root was
reached through a link that changed during the test, `path()` named the old
folder while drop and `close()` resolved the link again: the folder that was
made stayed and a folder with the same name under the new target could be
removed. The root is now canonicalized before the folder is made, and the
symlink-root test retargets the link before the drop.
On Unix a umask that removes owner read, write or search permission left the
new folder unusable (for example mode 0o300) while `TempDir::new` returned
Ok, since the owner probe needs only write and search; cleanup then failed.
`check` now returns PermissionDenied unless the owner has all three, before
the probe runs.
`TempDir::new` and `TempDir::file` also return InvalidInput for `<`, `>`,
`"`, `|`, `?`, `*` and control characters, which Windows does not allow in a
file name, on every platform. The README and doc comments list them.
The crate-level summary of `temp::TempDir` now states that the Unix check
reads the mode bits and does not read POSIX or NFSv4 access control lists,
matching `temp.rs` and the README.
UvGBuffer::new multiplied the band height by the width in u32, so a width
above 134,217,728 overflowed (a panic in debug builds, wrong band chunks in
release builds), and width × height could overflow usize on 32-bit targets.
new now returns Result. It rejects a side of 0 or above MAX_SIDE (16,384)
and more than MAX_TEXELS texels (8,192 × 8,192), reserves the buffers with
try_reserve_exact so a failed allocation returns an error, and does the
band length and texel index arithmetic in usize.
add_range checked each row of the range against the selected keys with
Vec::contains, so adding a range of n rows to a selection of m keys made
up to n * m comparisons. With more than 8 rows in the range, the selected
keys now go into a HashSet first. Shorter ranges keep the plain search.
The order of the selection and the anchor and lead rules do not change.
The new trial selects 2,000 of 5,000 rows and Shift+Cmd-clicks row 0
with the anchor on row 4,000. With the plain search the click makes
about 6 million key comparisons; with the set it stays under 1 million,
which the trial asserts.
temp.rs calls TempDir::disable_cleanup, which tempfile 3.20.0 added, so
the dependency now asks for 3.20. The crate docs no longer link
temp::TempDir, which is not built for wasm32, and say the folder is
private on Unix and that removal on drop is best effort. The READMEs say
the same, that the umask can remove more bits from the requested 0o700,
and that the Unix check reads mode bits only, not access control lists.
On macOS the temp directory is under /var, a link to /private/var, so current_dir() reads back the /private/var path and the assert failed on main's macOS gate.
`repaint::request_after` read the pass clock to note the wake in an open replay record, also on a thread with no
running pass (the control server's `WindowHost::repaint_in`). The read moved the context's pass state to that thread
for a moment, and a UI pass starting then ran on an empty default state, which was parked afterwards: no command sets,
no app catalog, every command shown by its id until a restart.
The clock is now read only while a record is open on this thread, the only case `note_wake` notes anything in.
set_in_model left the rows' kept values in place. Body::values reads them
before a host's sRGB-only color, and in HSB a grey or black matches for any
hue, so after picking a grey chip the Hue row kept the hue of earlier row
edits and the next channel edit started from it. The pick now removes the
kept entries for the chip's model before it files the edit.
Set craft_hdr::Limits::max_axis from Limits::max_side and drop the
separate resolution-line parser. A side over the limit is now
DecodeError::LimitExceeded ("axis length"), reported before any pixel
memory is allocated.