roxify 1.12.10 → 1.12.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Cargo.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "roxify_native"
3
- version = "1.12.10"
3
+ version = "1.12.11"
4
4
  edition = "2021"
5
5
  publish = false
6
6
 
Binary file
@@ -445,7 +445,12 @@ fn write_idat_streaming<W: Write, R: Read>(
445
445
  deflate_block_remaining -= take;
446
446
  cols_written += take;
447
447
  } else {
448
- let take = need.min(zero_remaining).min(buf_size);
448
+ let max_before_marker = if flat_pos < marker_end_pos {
449
+ marker_end_pos - flat_pos
450
+ } else {
451
+ need
452
+ };
453
+ let take = need.min(zero_remaining).min(buf_size).min(max_before_marker);
449
454
  if take == 0 { break; }
450
455
  let zeros = vec![0u8; take];
451
456
  w.write_all(&zeros)?;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "roxify",
3
- "version": "1.12.10",
3
+ "version": "1.12.11",
4
4
  "type": "module",
5
5
  "description": "Ultra-lightweight PNG steganography with native Rust acceleration. Encode binary data into PNG images with zstd compression.",
6
6
  "main": "dist/index.js",