Skip to content

Commit eaedbbc

Browse files
authored
[libc] Use yaml.safe_load rather than yaml.load (#109557)
`yaml.load` is considered unsafe, use `yaml.safe_load`.
1 parent ff8d55f commit eaedbbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/newhdrgen/yaml_functions_sorted.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
def sort_yaml_functions(yaml_file):
88
with open(yaml_file, "r") as f:
9-
yaml_data = yaml.load(f, Loader=yaml.FullLoader)
9+
yaml_data = yaml.safe_load(f)
1010

1111
if "functions" in yaml_data:
1212
yaml_data["functions"].sort(key=lambda x: x["name"])

0 commit comments

Comments
 (0)