Skip to content

Commit

Permalink
Asset Packer: Fix font terminator causing freezes/crashes (#295)
Browse files Browse the repository at this point in the history
* Asset Packer: Fix font terminator causing freezes/crashes

* Update changelog
  • Loading branch information
Willy-JL authored Nov 10, 2024
1 parent bacafc4 commit 9e4ff66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@
- OFW: Fix detection of GProx II cards and false detection of other cards (by @Astrrra)
- OFW: Fix Guard GProxII False Positive and 36-bit Parsing (by @zinongli)
- OFW: GProxII Fix Writing and Rendering Conflict (by @zinongli)
- Asset Packer: Fix font terminator causing freezes/crashes, like in Marauder AP scan/list (#295 by @Willy-JL)
- Desktop:
- Fallback Poweroff prompt when power settings is unavailable (by @Willy-JL)
- Sub-GHz:
Expand Down
1 change: 1 addition & 0 deletions scripts/asset_packer.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ def pack_font(src: pathlib.Path, dst: pathlib.Path):
.decode("unicode_escape")
.encode("latin_1")
)
font += b"\0"
dst.with_suffix(".u8f").write_bytes(font)
elif src.suffix == ".u8f":
if not dst.is_file():
Expand Down

0 comments on commit 9e4ff66

Please sign in to comment.