Do not read past ending KeePassFile tag in xml stream
A lightweight and easy-to-use password manager
Brought to you by:
dreichl
This patch has the xml reader/parser stop reading from the xml stream once the KeePassFile end tag is found. This allows some databases that have valid xml data followed by garbage bytes to be opened by KeePass. This has been a known issue with the TwofishCipher plugin and conceivably could happen with alternate implementations. Attached is also a KDBX file with Twofish encryption that will successfully open with this patch, but won't without it. For some context see these discussion threads: here and here.
Also, to open the database the TwofishCipher plugin with my patch to not handle padding must be used or a padding exception will be raised.
I can confirm this works for me, thanks.