Mailing List Archive

[Bug 713] SIGSEGV after header_add_* from local_scand dlfunc module
------- You are receiving this mail because: -------
You are on the CC list for the bug.

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

Mikhail <Mikhail.Modin@kaspersky.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
OS/Version|Linux |FreeBSD




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

--
## List details at http://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##
[Bug 713] SIGSEGV after header_add_* from local_scand dlfunc module [ In reply to ]
------- You are receiving this mail because: -------
You are on the CC list for the bug.

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




--- Comment #1 from Mikhail <Mikhail.Modin@kaspersky.com> 2008-05-20 14:55:04 ---
Created an attachment (id=243)
--> (http://bugs.exim.org/attachment.cgi?id=243)
log with debug memory alloc/dealloc turned on


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

--
## List details at http://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##
[Bug 713] SIGSEGV after header_add_* from local_scand dlfunc module [ In reply to ]
------- You are receiving this mail because: -------
You are on the CC list for the bug.

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

Tony Finch <fanf@exim.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |fanf@exim.org




--- Comment #2 from Tony Finch <fanf@exim.org> 2008-05-21 16:42:15 ---
It seems that ${dlfunc can break the store management assumptions in the string
expansion code. I'll attach a patch that I believe should fix the problem.

Is there any particular reason that you are developing a dlfunc module, rather
than adapting/improving Exim's own Kaspersky support?


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

--
## List details at http://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##
[Bug 713] SIGSEGV after header_add_* from local_scand dlfunc module [ In reply to ]
------- You are receiving this mail because: -------
You are on the CC list for the bug.

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




--- Comment #3 from Tony Finch <fanf@exim.org> 2008-05-21 16:43:36 ---
Created an attachment (id=244)
--> (http://bugs.exim.org/attachment.cgi?id=244)
fix allocation inside ${dlfunc modules


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

--
## List details at http://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##
[Bug 713] SIGSEGV after header_add_* from local_scand dlfunc module [ In reply to ]
------- You are receiving this mail because: -------
You are on the CC list for the bug.

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

Mikhail <Mikhail.Modin@kaspersky.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED




--- Comment #4 from Mikhail <Mikhail.Modin@kaspersky.com> 2008-05-22 08:16:38 ---
Thank you. The patch has fix the problem.

We are developing dlfunc module for a new product. Our new daemon have new
totally incompatible protocol.


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

--
## List details at http://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##
[Bug 713] SIGSEGV after header_add_* from local_scand dlfunc module [ In reply to ]
------- You are receiving this mail because: -------
You are on the CC list for the bug.

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




--- Comment #5 from Tony Finch <fanf@exim.org> 2008-05-22 11:56:28 ---
CVS commit by fanf2:

If a ${dlfunc module has side-effects that cause store allocation, this
can conflict with the string expansion storage management logic - in
particular, the expansion code resets the store to reclaim working
space. In order to avoid destroying store allocated by ${dlfunc the
expansion code now leaks a bit if ${dlfunc is used.

Fixes: bug #713

--- CVS commit summary ---
1.94 1.95 +13 -4 - exim/exim-src/src/expand.c


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

--
## List details at http://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##
[Bug 713] SIGSEGV after header_add_* from local_scand dlfunc module [ In reply to ]
------- You are receiving this mail because: -------
You are on the CC list for the bug.

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




--- Comment #6 from Tony Finch <fanf@exim.org> 2008-05-22 11:58:05 ---
If you are willing to contribute code to malware.c that supports your new
scanner then we would be very happy to incorporate it.


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

--
## List details at http://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##