[PATCH] D112075: Use safe yaml load_all
Yi Kong via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 19 07:21:06 PDT 2021
kongyi created this revision.
kongyi added a reviewer: anemet.
kongyi requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
https://reviews.llvm.org/D112075
Files:
llvm/tools/opt-viewer/optrecord.py
Index: llvm/tools/opt-viewer/optrecord.py
===================================================================
--- llvm/tools/opt-viewer/optrecord.py
+++ llvm/tools/opt-viewer/optrecord.py
@@ -274,7 +274,7 @@
file_remarks = defaultdict(functools.partial(defaultdict, list))
with io.open(input_file, encoding = 'utf-8') as f:
- docs = yaml.load_all(f, Loader=Loader)
+ docs = yaml.safe_load_all(f, Loader=Loader)
filter_e = None
if filter_:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112075.380687.patch
Type: text/x-patch
Size: 485 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211019/afc68c63/attachment.bin>
More information about the llvm-commits
mailing list