[Interest] Qt Resource Compiler - why does it randomize the order of items?

Richard Moore rich at kde.org
Mon May 19 14:53:58 CEST 2014


On 19 May 2014 09:18, Ola Røer Thorsen <ola at silentwings.no> wrote:

> Hi,
>
> If I call rcc (the Qt Resource Compiler) twice using the exact same input,
> the resulting .cpp files are never exactly the same. They are all
> completely valid, just the ordering of "items" inside is different. I'm
> just curious, why?
>
>
It's due to the hash randomisation. This was done to avoid DoS attacks that
can be performed by  tweaking data to ensure it always falls into the same
hash bucket.

Rich.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140519/58dc3cbb/attachment.html>


More information about the Interest mailing list