Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
Signed-off-by: David Korczynski <david@adalogics.com>
  • Loading branch information
DavidKorczynski committed Jan 29, 2025
1 parent 9d186f7 commit 5206b4a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/fuzz_introspector/data_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,12 @@ def read_fuzzer_data_file_to_profile(
logger.info('Found no module yaml files')
return None

with open(cfg_file, 'r') as f:
cfg_content = f.read()
try:
with open(cfg_file, 'r') as f:
cfg_content = f.read()
except UnicodeDecodeError:
logger.info('CFG file not valid.')
return None

profile = fuzzer_profile.FuzzerProfile(cfg_file,
data_dict_yaml,
Expand Down

0 comments on commit 5206b4a

Please sign in to comment.