Mailing List Archive

exim 4.96 segfault on match
Hello.


exim 4.95, example 1:
# exim -be '${if match{abc}{\N^(\S+)\s*(\S.+)*$\N}{$1}{}}'
abc

That is ok


exim 4.95, example 2:
# exim -be '${if match{abc}{\N^(\S+)\s*(\S.+)*$\N}{$2}{}}'

That is ok


exim 96, example 1:
# exim -be '${if match{abc}{\N^(\S+)\s*(\S.+)*$\N}{$1}{}}'
abc

That is ok


exim 4.96, example 2:

expected empty output:
# exim -be '${if match{abc}{\N^(\S+)\s*(\S.+)*$\N}{$2}{}}'

real output:
# exim -be '${if match{abc}{\N^(\S+)\s*(\S.+)*$\N}{$2}{}}'
2022-11-10 23:14:51 [15433] SIGSEGV (fault address: 0x1)
2022-11-10 23:14:51 [15433] SIGSEGV (null pointer indirection)
2022-11-10 23:14:51 [15433] SIGSEGV (15433 initializing
)
Segmentation fault


--
Best wishes Victor Ustugov
mailto:victor@corvax.kiev.ua
public GnuPG/PGP key: https://victor.corvax.kiev.ua/corvax.asc

--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
Re: exim 4.96 segfault on match [ In reply to ]
On 10/11/2022 21:27, Victor Ustugov via Exim-users wrote:
> # exim -be '${if match{abc}{\N^(\S+)\s*(\S.+)*$\N}{$2}{}}'
> 2022-11-10 23:14:51 [15433] SIGSEGV (fault address: 0x1)

Thanks for the report. Raised bug 2933.
--
Cheers,
Jeremy


--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/