]> git.ipfire.org Git - thirdparty/rsync.git/commit
Fix use-after-free in generator
authorNatanael Copa <ncopa@alpinelinux.org>
Wed, 15 Jan 2025 14:48:04 +0000 (15:48 +0100)
committerAndrew Tridgell <andrew@tridgell.net>
Wed, 15 Jan 2025 19:27:26 +0000 (06:27 +1100)
commit81ead9e70c7b9ee1bf3d1df09ace7df95934c5b8
treec05eeaeee0fe4b6d8db11e051450fd86b63730bc
parent996af4a79f9afe4d7158ecdd87c78cee382c6b39
Fix use-after-free in generator

full_fname() will free the return value in the next call so we need to
duplicate it before passing it to rsyserr.

Fixes: https://github.com/RsyncProject/rsync/issues/704
generator.c