Download tasks/codeql_python_benchmark51_v2/pyvul-e73df8c8998a1ddc180a/patch.diff from Benchanything/checkerbench: direct link, hf CLI and curl.
- Browser
- Download file 644 Bytes
-
https://huggingface.co/datasets/Benchanything/checkerbench/resolve/main/tasks/codeql_python_benchmark51_v2/pyvul-e73df8c8998a1ddc180a/patch.diff
- Command line
-
hf download hf://datasets/Benchanything/checkerbench/tasks/codeql_python_benchmark51_v2/pyvul-e73df8c8998a1ddc180a/patch.diff
-
curl -L -o patch.diff https://huggingface.co/datasets/Benchanything/checkerbench/resolve/main/tasks/codeql_python_benchmark51_v2/pyvul-e73df8c8998a1ddc180a/patch.diff
644 Bytes
| diff --git a/Lib/fontTools/subset/svg.py b/Lib/fontTools/subset/svg.py | |
| index f6d74a400..2e55bf54c 100644 | |
| --- a/Lib/fontTools/subset/svg.py | |
| +++ b/Lib/fontTools/subset/svg.py | |
| def subset_glyphs(self, s) -> bool: | |
| # ignore blank text as it's not meaningful in OT-SVG; it also prevents | |
| # dangling tail text after removing an element when pretty_print=True | |
| remove_blank_text=True, | |
| + # don't replace entities; we don't expect any in OT-SVG and they may | |
| + # aboused for XXE attacks | |
| + resolve_entities=False, | |
| ), | |
| ) | |