You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@freemarker.apache.org by "dwadw (Jira)" <ji...@apache.org> on 2023/04/09 12:45:00 UTC

[jira] [Created] (FREEMARKER-215) a specially constructed ftl will cause freemarker hang

dwadw created FREEMARKER-215:
--------------------------------

             Summary: a specially constructed ftl will cause freemarker hang
                 Key: FREEMARKER-215
                 URL: https://issues.apache.org/jira/browse/FREEMARKER-215
             Project: Apache Freemarker
          Issue Type: Bug
          Components: engine
    Affects Versions: 2.3.31
            Reporter: dwadw
         Attachments: file1.ftl

A specially constructed ftl will cause freemarker hang and the program will never stop.

            Configuration config = new Configuration();
            TemplateLoader templateLoader = new FileTemplateLoader(new File("/tmp/"));
            config.setTemplateLoader(templateLoader);
            Template template = config.getTemplate("file1.ftl");

See file1.ftl in attachment.

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)