Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.

This project adheres to [Semantic Versioning](https://semver.org).

## [1.8.0] - 2026-05-01

- Fix decoding of constant length strings (Introduced in `1.7.0`)
- Fix temporary decoding files potentially being left on the filesystem

## [1.7.0] - 2026-04-14

- Add button to open output folder in system viewer
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "infuse_decoder"
version = "1.7.0"
version = "1.8.0"
edition = "2024"

[[bin]]
Expand Down
4 changes: 2 additions & 2 deletions scripts/tdf_decoder.rs.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ fn tdf_field_read_string(cursor: &mut Cursor<&[u8]>, cursor_start: u64, num: u8,
{
let string_length = match num {
0 => vla_bytes_remaining(cursor, cursor_start, size)?,
_ => size as usize,
_ => num as usize,
};

let mut buf = vec![0u8; string_length];
Expand All @@ -68,7 +68,7 @@ pub fn tdf_read_into_str(tdf_id: &u16, size: u8, cursor: &mut Cursor<&[u8]>) ->

let res = match tdf_id {
{% for tdf_id, info in definitions.items() %}
{{ tdf_id }} =>
{{ tdf_id }} =>
Ok(format!(
"{{ info['rust_fmt'] }}",
{% for conv in info['rust_convs'] %}
Expand Down
6 changes: 6 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ impl TdfOutput for TdfCsvWriter {
let heading = tdf::decoders::tdf_fields(&tdf_id).join(",");
writer.write_all(format!("time,{}\n", heading).as_bytes())?;

// Touch the count variable in case the decoding fails
*self
.output_cnt
.entry((remote_id, tdf_id.to_owned()))
.or_default() += 0;

// Insert into hashmap and return
v.insert((path, writer))
}
Expand Down
Loading
Loading