[exim-dev] [Bug 985] pdkim.c may use a string that isn't nul…

Góra strony
Delete this message
Reply to this message
Autor: Simon Arlott
Data:  
Dla: exim-dev
Temat: [exim-dev] [Bug 985] pdkim.c may use a string that isn't null terminated
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=985

Simon Arlott <bugzilla.exim.simon@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #381 is|0                           |1
           obsolete|                            |





--- Comment #1 from Simon Arlott <bugzilla.exim.simon@???> 2010-05-18 21:18:35 ---
Created an attachment (id=383)
--> (http://bugs.exim.org/attachment.cgi?id=383)
[PATCH] pdkim: null terminate new strings

If sig->headers is NULL while signing, headernames->str is never
null terminated in pdkim_feed_finish().

Instead of attempting to fix all existing/future uses of empty
strings, null terminate all new strings in pdkim_strnew().


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email