ynop / audiomate

Cell variable defined in loop PYL-W0640
Bug risk
Major
1 occurrence in this check
Cell variable is_within_directory defined in loop
122                
123                    for member in tar.getmembers():
124                        member_path = os.path.join(path, member.name)
125                        if not is_within_directory(path, member_path):126                            raise Exception("Attempted Path Traversal in Tar File")
127                
128                    tar.extractall(path, members, numeric_owner=numeric_owner)