[Development] qdds image format

Иван Комиссаров abbapoh at gmail.com
Tue Apr 17 08:09:25 CEST 2018


> 16 апр. 2018 г., в 16:03, Giuseppe D'Angelo <giuseppe.dangelo at kdab.com> написал(а):
> 
> On 16/04/18 12:23, Иван Комиссаров wrote:
>> So, how those issues are checked? Any tool or what?
> 
> Looking at the email archives: it was fuzzed through AFL. I don't have the test images still around, but in my experience a simple multi-image file was enough to trigger a crash. (I used to see this in Creator, when accidentally opening a DDS in its builtin image preview).

What is AFP?

Looking at the code, i found at some bugs (unchecked using scanline when image is null), i can easily fix that.
A multiimage files are not implemnted (the code is supposed to read first image, still i don’t see why it can crash, i’ll try to generate such file and see what happens)


> But again, why having such an image loader in Qt? It's not going to be useful in 99.9% of the use cases where you use a DDS file.

Well, opening DDS file in Qt Creator is that «0.01%» usecase, but it’s quite convenient to do such thing. In case it doesn’t crash, though:(
Or you’re developing a game and you need a map/level qwidget-based editor - it definitely should be able to open (and save) such textures.
Or you’re writing an archiver for a game with a file preview.
I don’t like reimplementing a wheel but i constantly have to because of that 0.01% of that «features that nobody needs»:)


More information about the Development mailing list