-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-61441: XML entity expansion limitation #9265
base: main
Are you sure you want to change the base?
Conversation
I would prefer to see this change made in expat upstream. We should vendor an unmodified version of expat. |
That's the plan. |
a172a25
to
053db1d
Compare
Since we ship the vendored one as part of the Windows release, I'd be happy to have this merged for 3.7.1 while we wait for the patch to go upstream. This is not our public API, so even if they upstream a different version of it, that won't affect us. |
6a51752
to
2cffc90
Compare
Modelled after https://github.com/GNOME/libxml2/blob/v2.9.8/parser.c#L99 Signed-off-by: Christian Heimes <[email protected]>
2cffc90
to
504e092
Compare
@tiran maybe we could close this issue, +- 1y and I suppose |
@tiran Is the PR still relevant? |
typedef struct { | ||
ENTITY *first_entity; | ||
unsigned int entitiesNestingLevel; | ||
size_t nestedEntitiesExpansionSize; /* in bytes, not XML_Cha) */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
size_t nestedEntitiesExpansionSize; /* in bytes, not XML_Cha) */ | |
size_t nestedEntitiesExpansionSize; /* in bytes, not XML_Char */ |
Modelled after https://github.com/GNOME/libxml2/blob/v2.9.8/parser.c#L99
Signed-off-by: Christian Heimes [email protected]
https://bugs.python.org/issue17239