MissouriMRDT / Autonomy_Software

Audit required: External control of file name or path PTC-W6004
Security
Minor
4 days ago14 days old
External variable 'log_file_path' used in file path
 10def parse_log_file(log_file_path):
 11    log_data = []
 12    # Read the log file into a pandas DataFrame
 13    with open(log_file_path, mode='r') as file: 14        csvFile = csv.DictReader(file, delimiter='\t', fieldnames=["timestamp", "level", "thread", "trace", "message"])
 15        for line in csvFile:
 16            log_data.append(line)