From fc93a57ecbdcff8e12486032e91d2ac9d10d1002 Mon Sep 17 00:00:00 2001 From: RebeccaMahany Date: Tue, 16 Jul 2024 09:41:42 -0400 Subject: [PATCH] Handle booleans when deserializing firefox extension data --- ee/katc/deserialize_firefox.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ee/katc/deserialize_firefox.go b/ee/katc/deserialize_firefox.go index 1a50975c3..73691b979 100644 --- a/ee/katc/deserialize_firefox.go +++ b/ee/katc/deserialize_firefox.go @@ -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 {