Project

General

Profile

Actions

Bug #5010

closed

failure with dataset file mishandling

Added by Shivani Bhardwaj almost 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

Traceback (most recent call last):
  File "./bin/suricata-update", line 33, in <module>
    sys.exit(main.main())
  File "/home/ard/Orgs/oisf/suricata-update/suricata/update/main.py", line 1323, in main
    sys.exit(_main())
  File "/home/ard/Orgs/oisf/suricata-update/suricata/update/main.py", line 1259, in _main
    write_merged(os.path.join(output_filename), rulemap, dep_files)
  File "/home/ard/Orgs/oisf/suricata-update/suricata/update/main.py", line 497, in write_merged
    handle_dataset_files(rule, dep_files)
  File "/home/ard/Orgs/oisf/suricata-update/suricata/update/main.py", line 427, in handle_dataset_files
    load_attr = [el.strip() for el in rule.dataset.split(",") if "load" in el][0]
IndexError: list index out of range

Handle this and support all dataset attributes to avoid this.

Actions #1

Updated by Shivani Bhardwaj almost 3 years ago

  • Status changed from Assigned to In Review
Actions #2

Updated by Jason Ish over 2 years ago

  • Assignee changed from Shivani Bhardwaj to Jason Ish
  • Target version changed from 1.3.0 to 1.2.4
Actions #3

Updated by Jason Ish over 2 years ago

  • Status changed from In Review to Closed
Actions

Also available in: Atom PDF