Mailing List Archive

[Bug 3087] New: segfault on expand_string_internal
https://bugs.exim.org/show_bug.cgi?id=3087

Bug ID: 3087
Summary: segfault on expand_string_internal
Product: Exim
Version: N/A
Hardware: x86
OS: All
Status: NEW
Severity: bug
Priority: medium
Component: String expansion
Assignee: unallocated@exim.org
Reporter: arekm@maven.pl
CC: exim-dev@lists.exim.org

exim from git (4e19eed51a7f777e1e18b60c636e0c9bfb82c23b)

remote_smtp:
driver = smtp
headers_add = ${if def:authenticated_id {X-Authenticated-Id:
${authenticated_id}}}
max_rcpt = 1
return_path = ${if eq{$r_srs_condition}{1} {${srs_encode {SRS_SECRET}
{$return_path} {$r_srs_domain}}} {$return_path}}
message_linelength_limit = 1048576

gdb --args exim -d -M 1rhnck-000000001UL-1pWA
[...]

Program received signal SIGSEGV, Segmentation fault.
0x00007f750a17201d in ?? () from /lib64/libc.so.6
(gdb) bt
#0 0x00007f750a17201d in ?? () from /lib64/libc.so.6
#1 0x00000000004a67c4 in string_cat (g=g@entry=0x7f7509034a58, s=s@entry=0x0)
at string.c:1242
#2 0x0000000000448d14 in expand_string_internal (string=string@entry=0x238b5a6
"${srs_encode {dsgfjhkjghfdg} {$return_path} {$r_srs_domain}}}
{$return_path}}", flags=flags@entry=3, left=left@entry=0x7fff5c4f5078,
resetok_p=resetok_p@entry=0x7fff5c4f52a4, textonly_p=textonly_p@entry=0x0)
at expand.c:7120
#3 0x000000000044be00 in process_yesno (flags=0, flags@entry=2, yes=1,
save_lookup=0x0, sptr=sptr@entry=0x7fff5c4f52b8,
yieldptr=yieldptr@entry=0x7fff5c4f52b0, type=type@entry=0x50d22f "if",
resetok=0x7fff5c4f52a4) at expand.c:3811
#4 0x0000000000444360 in expand_string_internal (string=string@entry=0x238b588
"${if eq{$r_srs_condition}{1} {${srs_encode {dsgfjhkjghfdg} {$return_path}
{$r_srs_domain}}} {$return_path}}", flags=flags@entry=2, left=left@entry=0x0,
resetok_p=resetok_p@entry=0x0, textonly_p=textonly_p@entry=0x0) at
expand.c:4939
#5 0x0000000000442046 in expand_string_2 (textonly_p=0x0, string=0x238b588
"${if eq{$r_srs_condition}{1} {${srs_encode {dsgfjhkjghfdg} {$return_path}
{$r_srs_domain}}} {$return_path}}") at expand.c:8511
#6 expand_string_2 (textonly_p=0x0, string=0x238b588 "${if
eq{$r_srs_condition}{1} {${srs_encode {dsgfjhkjghfdg} {$return_path}
{$r_srs_domain}}} {$return_path}}") at expand.c:8502
#7 expand_string (string=0x238b588 "${if eq{$r_srs_condition}{1} {${srs_encode
{dsgfjhkjghfdg} {$return_path} {$r_srs_domain}}} {$return_path}}") at
expand.c:8525
#8 0x000000000042ffbd in do_remote_deliveries (fallback=fallback@entry=0) at
deliver.c:4473
#9 0x0000000000437269 in deliver_message (id=<optimized out>,
forced=forced@entry=1, give_up=give_up@entry=0) at deliver.c:8084
#10 0x000000000041485e in main (argc=4, cargv=0x7fff5c536368) at exim.c:4993

--
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@lists.exim.org
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/