• Alex Kalderimis's avatar
    Prevent DOS via excessive ASCIIDOC includes · a6cce3a6
    Alex Kalderimis authored
    This sets a maximum limit on the number of include directives that any
    one file may use (transitively). This is set relatively low at the
    moment to 32 since each one requires a gitlay call to retrieve a blob
    from the repo, and experimentation suggests that this keeps processing
    to under 10sec.
    
    This approach prevents both cyclic imports as well as having a single
    file with an extremely lang list of includes.
    a6cce3a6
asciidoc_spec.rb 19.8 KB