Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMythologist committed Dec 17, 2024
1 parent b700b5f commit 96d118d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions volatility3/framework/automagic/symbol_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,15 +435,19 @@ def update(self, progress_callback=None):
f"SELECT cached FROM cache WHERE local = 0 and cached < datetime('now', '{self.cache_period}')"
)
remote_identifiers = RemoteIdentifierFormat(remote_isf_url)
progress_callback((index + 0.5) / length * 100, "Reading remote ISF list")
progress_callback(
(index + 0.5) / length * 100, "Reading remote ISF list"
)
for operating_system in constants.OS_CATEGORIES:
identifiers = remote_identifiers.process(
{}, operating_system=operating_system
)
for identifier, location in identifiers:
identifier = identifier.rstrip()
identifier = (
identifier[:-1] if identifier.endswith(b"\x00") else identifier
identifier[:-1]
if identifier.endswith(b"\x00")
else identifier
) # Linux banners dumped by dwarf2json end with "\x00\n". If not stripped, the banner cannot match.
cursor.execute(
"INSERT OR REPLACE INTO cache(identifier, location, operating_system, local, cached) VALUES (?, ?, ?, ?, datetime('now'))",
Expand Down

0 comments on commit 96d118d

Please sign in to comment.