gh-126033: Fix crash in _elementtree.c where evil tags/elements occurs#126079
gh-126033: Fix crash in _elementtree.c where evil tags/elements occurs#126079gougou12138 wants to merge 3 commits intopython:mainfrom gougou12138:fix-issue-126033
Conversation
|
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
|
The way to fix this is not necessarily only by checking whether There are also other places where there is a crash (namely in other Finally, I would have appreciated if you first asked whether you could open a PR or not since I was also working on it (and self-assigned the issue). |
Sorry about that, I didn’t saw the issue carefully about the self-assigning tag. I’ve understand your solution about this issue, For my solution, just adding the error throwing for just few functions, doesn't really fit for this issue. so I’ll close this PR soon. |
gh-126033: Fix crash in _elementtree.c where evil tags/elements occurs
Throws errors when evil tags/elements was detected.
This also fixes gh-126037.