Endless loop in com.aspose.psd.Image.load

This document causes an endless loop when loaded:
test2.7z (3.1 MB)

  public static void main(String[] args) throws IOException {
    String fname = test2.ai";
    File file = new File(fname);
    try (InputStream istream = new FileInputStream(file)) {
      AiImage image = (AiImage)com.aspose.psd.Image.load(istream);
      System.out.println("image=" + image);
    }
  }

Since a static variable of ImageLoadersRegistry is kept locked in the loop, all other threads that call the load function are blocked.

aspose-psd-23.7-jdk16.jar

@wimix
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PSDJAVA-535

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

I have just wanted to reproduce the problem with the current version 24.2. But Windows Defender signals a virus inside the test2.7z . This was definitely not the case when I uploaded it. So please do not download the test2.7z and remove it from your storage.

Thank you for information. The check on viruses doesn’t find any suspicious data in the uploaded artifact.