Skip to content
Snippets Groups Projects
Commit cdaaa0e2 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ipc_logging: Handle corrupted log page headers"

parents fe9bedf1 7d11fc36
No related branches found
No related tags found
No related merge requests found
......@@ -1441,8 +1441,17 @@ def cmdParse(options):
if page.unpack(data):
if versionIsOneOrGreater:
if not page.log_id in dictContexts:
context = get_context(start_of_page, fIn, page,
dictContexts, lstFiles, fileCount)
try:
context = get_context(start_of_page, fIn, page,
dictContexts, lstFiles, fileCount)
except:
msg = "Context not found - skipping page " + \
"and trying to " + \
"continue with unknown log page version"
logging.debug(msg)
page = LogPageVersionUnknown()
continue
else:
context = dictContexts[page.log_id]
page.setContext(context)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment