File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -994,7 +994,7 @@ XML_GetInputContext(XML_Parser parser,
994
994
#ifdef XML_BOMB_PROTECTION
995
995
996
996
/* Limit the amount of indirections that are allowed to occur during the
997
- expansion of a nested entity. The counter starts when an entity reference
997
+ expansion of a nested entity. A counter starts when an entity reference
998
998
is encountered. It resets after the entity is fully expanded. The limit
999
999
protects the parser against exponential entity expansion attacks (aka
1000
1000
billion laughs attack). When the limit is exceeded the parser stops and
@@ -1010,7 +1010,7 @@ void XML_SetMaxEntityIndirections(XML_Parser parser, unsigned int value);
1010
1010
1011
1011
1012
1012
/* Limit the total length of all entity expansions throughout the entire
1013
- document. The lengths of all entity are accumulated in a parser variable.
1013
+ document. The lengths of all entities are accumulated in a parser variable.
1014
1014
The setting protects against quadratic blowup attacks (lots of expansions
1015
1015
of a large entity declaration). When the sum of all entities exceeds
1016
1016
the limit, the parser stops and fails with `XML_ERROR_ENTITY_EXPANSION`.
You can’t perform that action at this time.
0 commit comments