Text file attachment with null character
A lightweight and easy-to-use password manager
Brought to you by:
dreichl
Hi,
There appears to be a bug with the File Attachment feature. If a text file containing a null character is attached, only data preceding the null character is included, not the entire file.
Thanks,
Ryan
I can reproduce the problem on KeePass 2.34 using "binary (no conversion)" encoding - W8.1.
cheers, Paul
Well, the text editing controls of Windows don't support null characters in texts. I've now added code such that KeePass automatically replaces null characters by spaces, which is the behavior of Notepad (on Windows 10).
Here's the latest development snapshot for testing:
http://keepass.info/filepool/KeePass_161101b.zip
Moving to closed feature requests.
Thanks and best regards,
Dominik
Ticket moved from /p/keepass/bugs/1582/
Thanks, I've confirmed that build 161101b fixes the problem. What is funny is that Microsoft's own Bitlocker Recovery Key text file has a null character! This is what brought it to my attention.
Does that mean you can't use the recovery key after the null has been replaced by a space?
cheers, Paul
I'm not sure, this might affect the "automatic" USB recovery method. However as long as the remainder of the data within the recovery text file is intact, you can simply read the key and enter it in manually.
How do you enter a nul character?
Are you able to test it?
cheers, Paul
You'll never have to manually enter the null character. It is only at the head of the file. Here is a sample: