Skip to content

Commit

Permalink
tools: debug_stream.py: CircularBufferDecoder.get_hdr() may return None
Browse files Browse the repository at this point in the history
Fix for unusual case where CircularBufferDecoder.get_hdr() returns
None when catching up in the middle of buffer.

Signed-off-by: Jyri Sarha <[email protected]>
  • Loading branch information
Jyri Sarha authored and kv2019i committed Dec 3, 2024
1 parent e54da0a commit 52de4e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/debug_stream/debug_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,8 @@ def decode_past_records(self, slot, pos, seqno):
if bpos < 0:
bpos = self.buf_words + pos - bsize
rec = self.get_hdr(slot, bpos)
if rec == None:
return
if bsize != rec.size_words:
return
if seqno is not None:
Expand Down

0 comments on commit 52de4e7

Please sign in to comment.