You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Non-utf8 String can be created with `TimeBuf::as_str`
18
+
19
+
The function `gix_date::parse::TimeBuf::as_str` can create an illegal string containing non-utf8 characters. This violates the safety invariant of `TimeBuf` and can lead to undefined behavior when consuming the string.
20
+
21
+
The bug can be prevented by adding `str::from_utf8` to the function `TimeBuf::write`.
0 commit comments