Skip to content

Commit

Permalink
Discard padding bytes before reading object property start
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaMahany committed Jul 26, 2024
1 parent 89f1f33 commit cc2e001
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ee/indexeddb/values.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func deserializeObject(ctx context.Context, slogger *slog.Logger, srcReader io.B

// First, we'll want the object property name. Typically, we'll get " (denoting a string),
// then the length of the string, then the string itself.
objPropertyStart, err := srcReader.ReadByte()
objPropertyStart, err := nextNonPaddingByte(srcReader)
if err != nil {
return obj, fmt.Errorf("reading object property: %w", err)
}
Expand Down

0 comments on commit cc2e001

Please sign in to comment.