exarch-rs 0.2.6 → 0.2.7

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.
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "exarch-rs",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "Memory-safe archive extraction library with built-in security validation",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
package/src/utils.rs CHANGED
@@ -15,8 +15,8 @@ const MAX_PATH_LENGTH: usize = 4096;
15
15
  ///
16
16
  /// Returns error if path contains null bytes or exceeds maximum length.
17
17
  pub fn validate_path(path: &str) -> Result<()> {
18
- // Use constant-time null byte check to prevent timing side-channel attacks
19
- // The fold operation processes every byte regardless of when null is found
18
+ // Constant-time null byte check (processes every byte regardless of match)
19
+ #[allow(clippy::needless_bitwise_bool)]
20
20
  let has_null = path.bytes().fold(false, |acc, b| acc | (b == 0));
21
21
 
22
22
  if has_null {