[Users] [Bug 3265] New: procmime.c: unbalanced flockfile() / funlockfile()
noreply at thewildbeast.co.uk
noreply at thewildbeast.co.uk
Fri Sep 5 12:23:42 CEST 2014
http://www.thewildbeast.co.uk/claws-mail/bugzilla/show_bug.cgi?id=3265
Bug ID: 3265
Summary: procmime.c: unbalanced flockfile() / funlockfile()
Classification: Unclassified
Product: Claws Mail
Version: 3.10.1
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P3
Component: Other
Assignee: users at lists.claws-mail.org
Reporter: timo.teras at iki.fi
Created attachment 1427
-->
http://www.thewildbeast.co.uk/claws-mail/bugzilla/attachment.cgi?id=1427&action=edit
proposed fix
procmime_decode_content() opens file with get_tmpfile_in_dir(), but uses
procmime_fclose() to close it which calls funlockfile() for it too. It is
undefined what happens - and some c-libraries crash, or abort with assertation
failure.
See attached patch to fix it.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Users
mailing list