[exim-dev] [Bug 3116] crash on unreadable dkim private key

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Exim Bugzilla
Datum:  
To: exim-dev
Alte Treads: [exim-dev] [Bug 3116] New: cras
Betreff: [exim-dev] [Bug 3116] crash on unreadable dkim private key
https://bugs.exim.org/show_bug.cgi?id=3116

Germano <germano.leichsenring@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |germano.leichsenring@gmail.
                   |                            |com


--- Comment #6 from Germano <germano.leichsenring@???> ---
Hi,

I was assuming it would be quick to reproduce/fix but it looks like I jumped
the trigger ..
I didn't go too deep into the source code, just a quick look and found out
about the permissions issue in my environment, which fixed the issue.

Looking at the code again, maybe expand_string() calls expand_string_2(), which
returns a const. dkim.c:745 is trying to update that const pointer, which could
have caused a segv? I don't know the exact relation to my "chmod" fix though.

local_scan.h:
extern uschar *expand_string(uschar *);
functions.h:
extern const uschar *expand_string_2(const uschar *, BOOL *);
expand.c:
uschar *
expand_string(uschar * string)
{ return US expand_string_2(CUS string, NULL); }


> I'd also like to know how "faulty line (dkim.c:745)" was arrived at.

I'm using exim4-daemon-light and I'm using the debug symbols with the same
version (4.98-1) from http://debug.mirrors.debian.org/debian-debug/.

$ apt install exim4-daemon-light-dbgsym
$ addr2line -e /usr/sbin/exim4 0x5b1cd
./b-exim4-daemon-light/build-Linux-x86_64/./b-exim4-daemon-light/build-Linux-x86_64/exim.c:257
$ addr2line -e /usr/sbin/exim4 0x5b394
./b-exim4-daemon-light/build-Linux-x86_64/./b-exim4-daemon-light/build-Linux-x86_64/exim.c:294
$ addr2line -e /lib/x86_64-linux-gnu/libc.so.6 0x3f5d0
libc_sigaction.c:?
$ addr2line -e /usr/sbin/exim4 0x72f6a
./b-exim4-daemon-light/build-Linux-x86_64/./b-exim4-daemon-light/build-Linux-x86_64/dkim.c:745
$ addr2line -e /usr/sbin/exim4 0x739e4
./b-exim4-daemon-light/build-Linux-x86_64/./b-exim4-daemon-light/build-Linux-x86_64/dkim_transport.c:164


BR
Germano.

--
You are receiving this mail because:
You are on the CC list for the bug.

--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-dev.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-dev-unsubscribe@???
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/