GNOME Bugzilla – Bug 708483
[PATCH] gkd: wrong/unintended size passed to read(2) in read_login_password
Last modified: 2013-09-23 15:05:28 UTC
Created attachment 255436 [details] [review] Fix lapse where the login password is read in pointer-sized chunks While casually reading over gnome-keyring code something caught my eye: in read_login_password (daemon/gkd-main.c) an apparently non-sensical size is passed to read(2). Read is called with sizeof(buf) as the third argument where the type of buf is gchar*. The consequences in this case are fairly minor: the function reads the login password in pointer-sized increments instead of using the actual capacity of the allocated buffer. Nevertheless, why not just fix it? Find the patch attached.
Thanks for the patch. Added to git master.