Skip to content

Commit 0be4dd4

Browse files
committed
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
1 parent 6bf1be6 commit 0be4dd4

File tree

4 files changed

+16
-15
lines changed

4 files changed

+16
-15
lines changed

Cargo.lock

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gix-archive/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ gix-date = { version = "^0.10.1", path = "../gix-date" }
3535

3636
flate2 = { version = "1.1.1", optional = true, default-features = false, features = ["zlib-rs"] }
3737
zip = { version = "2.6.1", optional = true, default-features = false, features = ["deflate"] }
38-
jiff = { version = "0.2.10", default-features = false, features = ["std"] }
38+
jiff = { version = "0.2.12", default-features = false, features = ["std"] }
3939

4040
thiserror = "2.0.0"
4141
bstr = { version = "1.12.0", default-features = false }

gix-date/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ serde = ["dep:serde", "bstr/serde"]
2222
bstr = { version = "1.12.0", default-features = false, features = ["std"] }
2323
serde = { version = "1.0.114", optional = true, default-features = false, features = ["derive"] }
2424
itoa = "1.0.1"
25-
jiff = "0.2.10"
25+
jiff = "0.2.12"
2626
thiserror = "2.0.0"
2727
# TODO: used for quick and easy `TimeBacking: std::io::Write` implementation, but could make that `Copy`
2828
# and remove this dep with custom impl

gix-date/tests/time/parse.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,7 @@ mod fuzz {
330330
fn reproduce_1979() {
331331
gix_date::parse("fRi ", None).ok();
332332
}
333+
333334
#[test]
334335
fn invalid_but_does_not_cause_panic() {
335336
for input in ["-9999-1-1", "7 -𬞋", "5 ڜ-09", "-4 week ago Z", "8960609 day ago"] {

0 commit comments

Comments
 (0)