MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlCtxtSetMaxAmplification

Function xmlCtxtSetMaxAmplification

ThirdParty/libxml2/vtklibxml2/parser.c:13768–13772  ·  view source on GitHub ↗

* 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

Source from the content-addressed store, hash-verified

13766 * be considered when processing trusted input.
13767 */
13768void
13769xmlCtxtSetMaxAmplification(xmlParserCtxtPtr ctxt, unsigned maxAmpl)
13770{
13771 ctxt->maxAmpl = maxAmpl;
13772}
13773
13774/**
13775 * xmlCtxtParseDocument:

Callers 4

testSAXFunction · 0.85
parseFileFunction · 0.85
xmllint.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected