Skip to content

Commit

Permalink
Split GPT volume name on null terminator (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
Schamper authored Apr 10, 2024
1 parent f1f643d commit 4dd3cee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dissect/volume/disk/schemes/gpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ def _partitions(self) -> Iterator[Partition]:

name = (
partition.name.decode("utf-16-le", "ignore")
.split("\x00")[0]
.strip("\x00")
.strip("\uffff") # a non-character in UTF-16
)
Expand Down

0 comments on commit 4dd3cee

Please sign in to comment.