Commits

Brett Cannon  committed 638dbe9

minor grammar tweaks

  • Participants
  • Parent commits a0d070a

Comments (0)

Files changed (1)

 #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
    fails with `XML_ERROR_ENTITY_INDIRECTIONS`.
    A value of 0 disables the protection.
  */
-
 #ifndef XML_DEFAULT_MAX_ENTITY_INDIRECTIONS
 #define XML_DEFAULT_MAX_ENTITY_INDIRECTIONS 40
 #endif
 
 
 /* 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`.