Skip to content

Commit

Permalink
Merge pull request ReFirmLabs#791 from ReFirmLabs/uboot_str_limit
Browse files Browse the repository at this point in the history
Truncate u-boot version string if too long
  • Loading branch information
devttys0 authored Dec 2, 2024
2 parents eb51707 + cace1bc commit 3e0743b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/signatures/uboot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ pub fn uboot_parser(file_data: &[u8], offset: usize) -> Result<SignatureResult,

if !uboot_version_string.is_empty() {
result.size = uboot_version_string.len();
result.description = format!("{}: {}", result.description, uboot_version_string);
result.description =
format!("{}: {:.100}", result.description, uboot_version_string);
return Ok(result);
}
}
Expand Down

0 comments on commit 3e0743b

Please sign in to comment.