neiam
/vigil
public · Issues · Pulls · Labels · Forks · Compare · Actions success · Badges · Packages
⭐
Log in to mark this repository.
vigil_symbolic: zip 9.9 for the uploaded dSYM zips, for RUSTSEC-2026-0367 et al. (symbolic 12 still pins its own zip 7.4)
6a2ac0f · Gabe Morell · 2026-12-03 03:30
Files changed
modified
native/vigil_symbolic/Cargo.lock
+78
−3
@@ -133,12 +133,27 @@ version = "1.0.5"
| 133 | 133 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| 134 | 134 | checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600" |
| 135 | 135 | |
| 136 | +[[package]] | |
| 137 | +name = "cfg_aliases" | |
| 138 | +version = "0.2.2" | |
| 139 | +source = "registry+https://github.com/rust-lang/crates.io-index" | |
| 140 | +checksum = "f079e83a288787bcd14a6aea84cee5c87a67c5a3e660c30f557a3d24761b3527" | |
| 141 | + | |
| 136 | 142 | [[package]] |
| 137 | 143 | name = "circular" |
| 138 | 144 | version = "0.3.0" |
| 139 | 145 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| 140 | 146 | checksum = "b0fc239e0f6cb375d2402d48afb92f76f5404fd1df208a41930ec81eda078bea" |
| 141 | 147 | |
| 148 | +[[package]] | |
| 149 | +name = "constant_time_eq" | |
| 150 | +version = "0.6.2" | |
| 151 | +source = "registry+https://github.com/rust-lang/crates.io-index" | |
| 152 | +checksum = "144e7f1de087984240b7816d47f698b414979faa6f40839c5b86d6bd47db57b7" | |
| 153 | +dependencies = [ | |
| 154 | + "rustversion", | |
| 155 | +] | |
| 156 | + | |
| 142 | 157 | [[package]] |
| 143 | 158 | name = "core_detect" |
| 144 | 159 | version = "1.0.0" |
@@ -336,8 +351,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
| 336 | 351 | checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099" |
| 337 | 352 | dependencies = [ |
| 338 | 353 | "cfg-if", |
| 354 | + "js-sys", | |
| 339 | 355 | "libc", |
| 340 | 356 | "r-efi", |
| 357 | + "wasm-bindgen", | |
| 341 | 358 | ] |
| 342 | 359 | |
| 343 | 360 | [[package]] |
@@ -648,6 +665,18 @@ version = "1.0.6"
| 648 | 665 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| 649 | 666 | checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086" |
| 650 | 667 | |
| 668 | +[[package]] | |
| 669 | +name = "nix" | |
| 670 | +version = "0.32.0" | |
| 671 | +source = "registry+https://github.com/rust-lang/crates.io-index" | |
| 672 | +checksum = "77730ed34f01f4990cb2ea67fec715ecebc6fab9a6396cf83c5529b13f581bdc" | |
| 673 | +dependencies = [ | |
| 674 | + "bitflags 2.13.2", | |
| 675 | + "cfg-if", | |
| 676 | + "cfg_aliases", | |
| 677 | + "libc", | |
| 678 | +] | |
| 679 | + | |
| 651 | 680 | [[package]] |
| 652 | 681 | name = "nom" |
| 653 | 682 | version = "7.1.3" |
@@ -1197,7 +1226,7 @@ dependencies = [
| 1197 | 1226 | "symbolic-ppdb", |
| 1198 | 1227 | "thiserror 2.0.21", |
| 1199 | 1228 | "wasmparser", |
| 1200 | − "zip", | |
| 1229 | + "zip 7.4.0", | |
| 1201 | 1230 | "zstd", |
| 1202 | 1231 | ] |
| 1203 | 1232 |
@@ -1373,6 +1402,12 @@ version = "0.12.4"
| 1373 | 1402 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| 1374 | 1403 | checksum = "54ec2755506471f54baf5e4bb5499d8e510cc1caf271270e778a736bd2d7336c" |
| 1375 | 1404 | |
| 1405 | +[[package]] | |
| 1406 | +name = "typed-path" | |
| 1407 | +version = "0.13.0" | |
| 1408 | +source = "registry+https://github.com/rust-lang/crates.io-index" | |
| 1409 | +checksum = "9ce898823d8cd0f028662d2f349694b1af0a5cc9be83f1d213a00d3147445e1e" | |
| 1410 | + | |
| 1376 | 1411 | [[package]] |
| 1377 | 1412 | name = "unicode-ident" |
| 1378 | 1413 | version = "1.0.27" |
@@ -1403,7 +1438,7 @@ dependencies = [
| 1403 | 1438 | "symbolic-debuginfo", |
| 1404 | 1439 | "symbolic-demangle", |
| 1405 | 1440 | "symbolic-symcache", |
| 1406 | − "zip", | |
| 1441 | + "zip 9.9.0", | |
| 1407 | 1442 | ] |
| 1408 | 1443 | |
| 1409 | 1444 | [[package]] |
@@ -1619,6 +1654,26 @@ dependencies = [
| 1619 | 1654 | "yaxpeax-arch", |
| 1620 | 1655 | ] |
| 1621 | 1656 | |
| 1657 | +[[package]] | |
| 1658 | +name = "zeroize" | |
| 1659 | +version = "1.9.2" | |
| 1660 | +source = "registry+https://github.com/rust-lang/crates.io-index" | |
| 1661 | +checksum = "85ccff8a4805aba1eaa4cd4afcd49f7557dd2cf5fd79ffc37f8959466effc5aa" | |
| 1662 | +dependencies = [ | |
| 1663 | + "zeroize_derive", | |
| 1664 | +] | |
| 1665 | + | |
| 1666 | +[[package]] | |
| 1667 | +name = "zeroize_derive" | |
| 1668 | +version = "1.5.0" | |
| 1669 | +source = "registry+https://github.com/rust-lang/crates.io-index" | |
| 1670 | +checksum = "3c50655cbb0fe3fc43170059e702f1ce5e19b84cec58dc87b037a09935c2f328" | |
| 1671 | +dependencies = [ | |
| 1672 | + "proc-macro2", | |
| 1673 | + "quote", | |
| 1674 | + "syn 2.0.119", | |
| 1675 | +] | |
| 1676 | + | |
| 1622 | 1677 | [[package]] |
| 1623 | 1678 | name = "zip" |
| 1624 | 1679 | version = "7.4.0" |
@@ -1629,7 +1684,27 @@ dependencies = [
| 1629 | 1684 | "flate2", |
| 1630 | 1685 | "indexmap", |
| 1631 | 1686 | "memchr", |
| 1632 | − "typed-path", | |
| 1687 | + "typed-path 0.12.4", | |
| 1688 | + "zopfli", | |
| 1689 | +] | |
| 1690 | + | |
| 1691 | +[[package]] | |
| 1692 | +name = "zip" | |
| 1693 | +version = "9.9.0" | |
| 1694 | +source = "registry+https://github.com/rust-lang/crates.io-index" | |
| 1695 | +checksum = "07db37dec4a7c468df4723fba4cadb4822d1d0f10dbea367100b6a6881b2a9c9" | |
| 1696 | +dependencies = [ | |
| 1697 | + "constant_time_eq", | |
| 1698 | + "crc32fast", | |
| 1699 | + "flate2", | |
| 1700 | + "getrandom", | |
| 1701 | + "indexmap", | |
| 1702 | + "libc", | |
| 1703 | + "memchr", | |
| 1704 | + "nix", | |
| 1705 | + "typed-path 0.13.0", | |
| 1706 | + "windows-sys 0.61.2", | |
| 1707 | + "zeroize", | |
| 1633 | 1708 | "zopfli", |
| 1634 | 1709 | ] |
| 1635 | 1710 |
modified
native/vigil_symbolic/Cargo.toml
+5
−5
@@ -38,11 +38,11 @@ symbolic-symcache = "12.13"
| 38 | 38 | symbolic-demangle = { version = "12.13", default-features = false, features = ["cpp", "msvc", "rust"] } |
| 39 | 39 | |
| 40 | 40 | # The legacy `POST /files/dsyms/` upload (what `sentry-cli upload-proguard` |
| 41 | −# sends by default) is a zip. The same version and features as | |
| 42 | −# symbolic-debuginfo's own (stored and DEFLATE on the pure-Rust zlib-rs | |
| 43 | −# backend), so nothing new is built. Entries are read through a `take()` | |
| 44 | −# bounded by what is left of the cap; declared sizes are never trusted. | |
| 45 | −zip = { version = "7.2", default-features = false, features = ["deflate"] } | |
| 41 | +# sends by default) is a zip, from the client, so it gets zip 9 (RUSTSEC-2026-0367 | |
| 42 | +# et al.) rather than symbolic-debuginfo's own 7.x, which symbolic 12 still pins. | |
| 43 | +# Stored and DEFLATE on the pure-Rust zlib-rs backend. Entries are read through a | |
| 44 | +# `take()` bounded by what is left of the cap; declared sizes are never trusted. | |
| 45 | +zip = { version = "9.9", default-features = false, features = ["deflate"] } | |
| 46 | 46 | |
| 47 | 47 | # Proguard/R8 mappings (Android): symbolic 12 dropped its proguard module |
| 48 | 48 | # for this crate. `uuid` computes a mapping's UUID (v5 over its contents) |
modified
native/vigil_symbolic/src/lib.rs
+1
−1
@@ -509,7 +509,7 @@ fn unzip(data: &[u8], max_total: u64, max_files: usize) -> Result<Files, Atom> {
| 509 | 509 | if files.len() >= max_files { |
| 510 | 510 | return Err(atoms::too_many_files()); |
| 511 | 511 | } |
| 512 | − let name = entry.name().to_owned(); | |
| 512 | + let name = entry.name().map_err(|_| atoms::invalid_zip())?.into_owned(); | |
| 513 | 513 | let mut bytes = Vec::new(); |
| 514 | 514 | (&mut entry) |
| 515 | 515 | .take(remaining.saturating_add(1)) |
Parents: dc0df58