Skip to content

Commit

Permalink
Handle booleans when deserializing firefox extension data (#1777)
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaMahany authored Jul 16, 2024
1 parent 70b6d0b commit 6e482b0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ee/katc/deserialize_firefox.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,12 @@ func deserializeObject(srcReader io.ByteReader) (map[string][]byte, error) {
return nil, fmt.Errorf("reading string for key %s: %w", nextKeyStr, err)
}
resultObj[nextKeyStr] = str
case tagBoolean:
if valData > 0 {
resultObj[nextKeyStr] = []byte("true")
} else {
resultObj[nextKeyStr] = []byte("false")
}
case tagObjectObject:
obj, err := deserializeNestedObject(srcReader)
if err != nil {
Expand Down

0 comments on commit 6e482b0

Please sign in to comment.