ci: release-images — advisory gates in a job without secrets, image job runs no third-party code before login, fresh config dir via GITHUB_ENV, run-id builder name, empty digest refused, cleanup order; docs: SAFETY markers consistent, iCCP fixture comment

This commit is contained in:
bchanot committed 2026-10-13 00:53:46 +02:00
1 parent 3af2861be7
commit 47d84161f5
4 files changed
+54 -26

No files matched your search

+2 -2
View File
@@ -163,9 +163,9 @@ pub fn encode_webp(rgba: &[u8], width: u32, height: u32, quality: f32) -> Result
if size == 0 || output.is_null() {
return Err(Reject::EncodeFailed);
}
// SAFETY: libwebp returned `size` initialised bytes at `output`.
// SAFETY [gated 2026-10-13]: libwebp returned `size` initialised bytes at `output`.
let encoded = unsafe { std::slice::from_raw_parts(output, size) }.to_vec();
// SAFETY: `output` came from libwebp's allocator and is not read afterwards.
// SAFETY [gated 2026-10-13]: `output` came from libwebp's allocator and is not read afterwards.
unsafe { libwebp_sys::WebPFree(output.cast()) };
Ok(encoded)
}