Skip to content
Commit e9f68dc7 authored by Kamal Mostafa's avatar Kamal Mostafa
Browse files

Save XML files with deterministic attribute order

Disable randomized QHash seed salt, so that QDomDocument will save XML
attributes in a deterministic (albeit arbitrary) order.

Now, saving an unchanged project yields an identical .kdenlive file
which can be checksummed, diff'ed, etc.

Reference: http://doc.qt.io/qt-5/qhash.html#algorithmic-complexity-attacks
Reference: http://stacksolve.com/3W1nJraYm18Q/qt-5-produce-random-attribute-order-in-xml.html
parent 3b531f5b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment