History

Further upgrade `jiff` to fix fuzz failures (#1984)

This upgrades `jiff` to 0.2.12 to fix fuzzing failures. The test case introduced in the previous commit now passes. Upgrading `jiff` past 0.2.11 gets the fix for BurntSushi/jiff#359, fixed in BurntSushi/jiff#360. To avoid declaring compatibility with a version that has the bug, this advances `jiff` from 0.2.10 to 0.2.12 in the `gix-archive` and `gix-date` manifests. (The changes in `Cargo.lock` are those that occur automatically when `cargo check --workspace` is run after those changes.) Fixes #1979 Fixes #1982

Eliah Kagan committed 1 year ago

Commit 0be4dd41 parent 6bf1be64 files · +16 −15Browse files

Unified · Split

4 files
  1. Cargo.lock +13 −13
  2. gix-archive/Cargo.toml +1 −1
  3. gix-date/Cargo.toml +1 −1
  4. gix-date/tests/time/parse.rs +1 −0
Cargo.lock+13−13
@@ -1028,7 +1028,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" · 1027 unmodified lines
1028checksum = "976dd42dc7e85965fe702eb8164f21f450704bdde31faefd6471dba214cb594e"1028checksum = "976dd42dc7e85965fe702eb8164f21f450704bdde31faefd6471dba214cb594e"
1029dependencies = [1029dependencies = [
1030 "libc",1030 "libc",
1031 "windows-sys 0.52.0",1031 "windows-sys 0.59.0",
1032]1032]
1033 1033
1034[[package]]1034[[package]]
@@ -3474,7 +3474,7 @@ checksum = "e04d7f318608d35d4b61ddd75cbdaee86b023ebe2bd5a66ee0915f0bf93095a9" · 2439 unmodified lines
3474dependencies = [3474dependencies = [
3475 "hermit-abi 0.5.0",3475 "hermit-abi 0.5.0",
3476 "libc",3476 "libc",
3477 "windows-sys 0.52.0",3477 "windows-sys 0.59.0",
3478]3478]
3479 3479
3480[[package]]3480[[package]]
@@ -3534,9 +3534,9 @@ checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c" · 53 unmodified lines
3534 3534
3535[[package]]3535[[package]]
3536name = "jiff"3536name = "jiff"
3537version = "0.2.11"3537version = "0.2.12"
3538source = "registry+https://github.com/rust-lang/crates.io-index"3538source = "registry+https://github.com/rust-lang/crates.io-index"
3539checksum = "27e77966151130221b079bcec80f1f34a9e414fa489d99152a201c07fd2182bc"3539checksum = "d07d8d955d798e7a4d6f9c58cd1f1916e790b42b092758a9ef6e16fef9f1b3fd"
3540dependencies = [3540dependencies = [
3541 "jiff-static",3541 "jiff-static",
3542 "jiff-tzdb-platform",3542 "jiff-tzdb-platform",
@@ -3544,14 +3544,14 @@ dependencies = [ · 1 unmodified line
3544 "portable-atomic",3544 "portable-atomic",
3545 "portable-atomic-util",3545 "portable-atomic-util",
3546 "serde",3546 "serde",
3547 "windows-sys 0.52.0",3547 "windows-sys 0.59.0",
3548]3548]
3549 3549
3550[[package]]3550[[package]]
3551name = "jiff-static"3551name = "jiff-static"
3552version = "0.2.11"3552version = "0.2.12"
3553source = "registry+https://github.com/rust-lang/crates.io-index"3553source = "registry+https://github.com/rust-lang/crates.io-index"
3554checksum = "97265751f8a9a4228476f2fc17874a9e7e70e96b893368e42619880fe143b48a"3554checksum = "f244cfe006d98d26f859c7abd1318d85327e1882dc9cef80f62daeeb0adcf300"
3555dependencies = [3555dependencies = [
3556 "proc-macro2",3556 "proc-macro2",
3557 "quote",3557 "quote",
@@ -3682,7 +3682,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" · 124 unmodified lines
3682checksum = "fc2f4eb4bc735547cfed7c0a4922cbd04a4655978c09b54f1f7b228750664c34"3682checksum = "fc2f4eb4bc735547cfed7c0a4922cbd04a4655978c09b54f1f7b228750664c34"
3683dependencies = [3683dependencies = [
3684 "cfg-if",3684 "cfg-if",
3685 "windows-targets 0.48.5",3685 "windows-targets 0.52.6",
3686]3686]
3687 3687
3688[[package]]3688[[package]]
@@ -4315,7 +4315,7 @@ dependencies = [ · 626 unmodified lines
4315 "once_cell",4315 "once_cell",
4316 "socket2",4316 "socket2",
4317 "tracing",4317 "tracing",
4318 "windows-sys 0.52.0",4318 "windows-sys 0.59.0",
4319]4319]
4320 4320
4321[[package]]4321[[package]]
@@ -4546,7 +4546,7 @@ dependencies = [ · 224 unmodified lines
4546 "errno",4546 "errno",
4547 "libc",4547 "libc",
4548 "linux-raw-sys 0.4.15",4548 "linux-raw-sys 0.4.15",
4549 "windows-sys 0.52.0",4549 "windows-sys 0.59.0",
4550]4550]
4551 4551
4552[[package]]4552[[package]]
@@ -4559,7 +4559,7 @@ dependencies = [ · 6 unmodified lines
4559 "errno",4559 "errno",
4560 "libc",4560 "libc",
4561 "linux-raw-sys 0.9.3",4561 "linux-raw-sys 0.9.3",
4562 "windows-sys 0.52.0",4562 "windows-sys 0.59.0",
4563]4563]
4564 4564
4565[[package]]4565[[package]]
@@ -5104,7 +5104,7 @@ dependencies = [ · 538 unmodified lines
5104 "getrandom 0.3.2",5104 "getrandom 0.3.2",
5105 "once_cell",5105 "once_cell",
5106 "rustix 1.0.7",5106 "rustix 1.0.7",
5107 "windows-sys 0.52.0",5107 "windows-sys 0.59.0",
5108]5108]
5109 5109
5110[[package]]5110[[package]]
@@ -5722,7 +5722,7 @@ version = "0.1.9" · 611 unmodified lines
5722source = "registry+https://github.com/rust-lang/crates.io-index"5722source = "registry+https://github.com/rust-lang/crates.io-index"
5723checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb"5723checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb"
5724dependencies = [5724dependencies = [
5725 "windows-sys 0.48.0",5725 "windows-sys 0.59.0",
5726]5726]
5727 5727
5728[[package]]5728[[package]]
gix-archive/Cargo.toml+1−1
@@ -35,7 +35,7 @@ gix-date = { version = "^0.10.1", path = "../gix-date" } · 34 unmodified lines
35 35
36flate2 = { version = "1.1.1", optional = true, default-features = false, features = ["zlib-rs"] }36flate2 = { version = "1.1.1", optional = true, default-features = false, features = ["zlib-rs"] }
37zip = { version = "2.6.1", optional = true, default-features = false, features = ["deflate"] }37zip = { version = "2.6.1", optional = true, default-features = false, features = ["deflate"] }
38jiff = { version = "0.2.10", default-features = false, features = ["std"] }38jiff = { version = "0.2.12", default-features = false, features = ["std"] }
39 39
40thiserror = "2.0.0"40thiserror = "2.0.0"
41bstr = { version = "1.12.0", default-features = false }41bstr = { version = "1.12.0", default-features = false }
gix-date/Cargo.toml+1−1
@@ -22,7 +22,7 @@ serde = ["dep:serde", "bstr/serde"] · 21 unmodified lines
22bstr = { version = "1.12.0", default-features = false, features = ["std"] }22bstr = { version = "1.12.0", default-features = false, features = ["std"] }
23serde = { version = "1.0.114", optional = true, default-features = false, features = ["derive"] }23serde = { version = "1.0.114", optional = true, default-features = false, features = ["derive"] }
24itoa = "1.0.1"24itoa = "1.0.1"
25jiff = "0.2.10"25jiff = "0.2.12"
26thiserror = "2.0.0"26thiserror = "2.0.0"
27# TODO: used for quick and easy `TimeBacking: std::io::Write` implementation, but could make that `Copy`27# TODO: used for quick and easy `TimeBacking: std::io::Write` implementation, but could make that `Copy`
28# and remove this dep with custom impl28# and remove this dep with custom impl
gix-date/tests/time/parse.rs+1−0
@@ -330,6 +330,7 @@ mod fuzz { · 329 unmodified lines
330 fn reproduce_1979() {330 fn reproduce_1979() {
331 gix_date::parse("fRi ", None).ok();331 gix_date::parse("fRi ", None).ok();
332 }332 }
333
333 #[test]334 #[test]
334 fn invalid_but_does_not_cause_panic() {335 fn invalid_but_does_not_cause_panic() {
335 for input in ["-9999-1-1", "7 -𬞋", "5 ڜ-09", "-4 week ago Z", "8960609 day ago"] {336 for input in ["-9999-1-1", "7 -𬞋", "5 ڜ-09", "-4 week ago Z", "8960609 day ago"] {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t