GNOME Bugzilla – Bug 665510
Do not crash when reading a seemingly valid but truncated keyring file
Last modified: 2011-12-19 08:40:07 UTC
Following the discussion I had on IRC yesterday with stefw, this patch fixes a crash I got because my login.keyring file had been truncated for some reason.
Created attachment 202716 [details] [review] Do not crash when reading a seemingly valid but truncated keyring file The binary keyring parsing function used to trust the values written in the files a little too much. If for some reason the keyring file has been truncated, then a memcpy() was attempted but failed with a segfault because the actual file was smaller than its expected size.
Thanks for the patch! Merged this a few days ago, and forgot to close the bug.
*** Bug 665508 has been marked as a duplicate of this bug. ***