Skip to content

Commit

Permalink
Brett's gramar fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tiran committed Feb 12, 2013
1 parent 8cf60f5 commit 549a2a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions expat/expat.h
Original file line number Diff line number Diff line change
Expand Up @@ -994,7 +994,7 @@ XML_GetInputContext(XML_Parser parser,
#ifdef XML_BOMB_PROTECTION

/* Limit the amount of indirections that are allowed to occur during the
expansion of a nested entity. The counter starts when an entity reference
expansion of a nested entity. A counter starts when an entity reference
is encountered. It resets after the entity is fully expanded. The limit
protects the parser against exponential entity expansion attacks (aka
billion laughs attack). When the limit is exceeded the parser stops and
Expand All @@ -1010,7 +1010,7 @@ void XML_SetMaxEntityIndirections(XML_Parser parser, unsigned int value);


/* Limit the total length of all entity expansions throughout the entire
document. The lengths of all entity are accumulated in a parser variable.
document. The lengths of all entities are accumulated in a parser variable.
The setting protects against quadratic blowup attacks (lots of expansions
of a large entity declaration). When the sum of all entities exceeds
the limit, the parser stops and fails with `XML_ERROR_ENTITY_EXPANSION`.
Expand Down

0 comments on commit 549a2a0

Please sign in to comment.