Dale Woolridge
2005-08-11 07:11:08 UTC
The attached patch addresses two issues encountered recently on a fairly
heavily loaded mail server.
The first issue is really a valgrind problem, but it's still in my
patch and does no harm. Valgrind was not reporting correctly when
the first strlen() in parse_sender() referenced ptr, but I was able
to shut it up by referencing env instead.
In the second case, if a filter modifies the envelope/message, then
move_unless_empty() will call parse_envelope() before assigning the
new length to *var, so the mmap() call in parse_envelope() will use
the unmodified envelope/message length.
thanks.
--
-dale
heavily loaded mail server.
The first issue is really a valgrind problem, but it's still in my
patch and does no harm. Valgrind was not reporting correctly when
the first strlen() in parse_sender() referenced ptr, but I was able
to shut it up by referencing env instead.
In the second case, if a filter modifies the envelope/message, then
move_unless_empty() will call parse_envelope() before assigning the
new length to *var, so the mmap() call in parse_envelope() will use
the unmodified envelope/message length.
thanks.
--
-dale