* xmlCtxtSetMaxAmplification: * @ctxt: an XML parser context * @maxAmpl: maximum amplification factor * * To protect against exponential entity expansion ("billion laughs"), the * size of serialized output is (roughly) limited to the input size * multiplied by this factor. The default value is 5. * * When working with documents making heavy use of entity expansion, it can * be necessary
| 13766 | * be considered when processing trusted input. |
| 13767 | */ |
| 13768 | void |
| 13769 | xmlCtxtSetMaxAmplification(xmlParserCtxtPtr ctxt, unsigned maxAmpl) |
| 13770 | { |
| 13771 | ctxt->maxAmpl = maxAmpl; |
| 13772 | } |
| 13773 | |
| 13774 | /** |
| 13775 | * xmlCtxtParseDocument: |
no outgoing calls
no test coverage detected