#1 2026-04-17 11:47:59

koraycayiroglu
Member
Registered: 2017-02-03
Posts: 88

Infinite loop when opening an invalid zip file

Hi ab,

I encountered an infinite loop while reading a zip file TZipRead from mormot.core.zip, at line 2797. This is not a mormot issue because in my case that zip file is not an actual zip file. Someone thought changing a html file's extension to zip is a good idea hmm. There is a function called IsZipStart to ensure it's a real zip but in this case it returns true. Delphi's TZipFile.IsValid return's false so i am using it before TZipCreate.

Anyway, an infinite loop is maybe something you want to avoid. Just want to inform you. I am using 2.4 stable release.

Best regards.

Last edited by koraycayiroglu (2026-04-17 11:48:33)

Offline

#2 2026-04-17 19:00:05

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 15,444
Website

Re: Infinite loop when opening an invalid zip file

Can you create a ticket on GitHub, so that I could follow this item?

Offline

#3 2026-04-20 06:56:05

koraycayiroglu
Member
Registered: 2017-02-03
Posts: 88

Re: Infinite loop when opening an invalid zip file

Sure, it's done.

Offline

Board footer

Powered by FluxBB