Rsync 3.1.3 segfault

Wayne Davison wayne at opencoder.net
Sat Jun 13 10:22:30 UTC 2020


On Mon, May 28, 2018 at 7:22 AM Marcin Krol wrote:

> The code responsible for segfault is new popt_unalias function added
> in 3.1.3. To be exact this line causes segfault:
> poptAddAlias(con, unalias, 0);
>

I have never seen this crash occur, but it dawned on me that the reason is
most likely that the function calling poptAddAlias() created an argv array
with only one element in it instead of the more proper 2-element array with
room for a trailing NULL.  I've tweaked the code to change that.

..wayne..
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/rsync/attachments/20200613/57346993/attachment.htm>


More information about the rsync mailing list