]> granicus.if.org Git - neomutt/commit
bug: don't pass large object by value
authorRichard Russon <rich@flatcap.org>
Mon, 3 Apr 2017 17:31:53 +0000 (18:31 +0100)
committerRichard Russon <rich@flatcap.org>
Sat, 8 Apr 2017 21:24:37 +0000 (22:24 +0100)
commit503716b92be91b3a5153373df42d4d1706c57123
tree331b79fada8a7477341c6c4ba31d7e2522c37664
parentd638d615bdf6d1c2dedc1290d33b2733ea0bd4ab
bug: don't pass large object by value

imap_delete_mailbox was passed an IMAP_MBOX object by value.

The object is >500 bytes so it would be better as a pointer.
Passing by value also led to a potential double-free.
browser.c
imap/imap.c
imap/imap.h