pacman 6.1 regression: XferCommand= causing segfaults
Hello!
I noticed after the recent pacman 6.1 release there seems to be an issue with XferCommand= causing the process to segfault.
pacman reaps the child and afterwards the last few syscalls are: rename("/var/.../core.db.part", "/var/.../core.db"), fchdir(7), close(7), then SIGSEGV.
The crash happens at this line (possibly one of the pointers isn't set/initialized):
size_t sig_len = strlen(s->data) + strlen(payload->filepath) + 6;
https://gitlab.archlinux.org/pacman/pacman/-/blob/v6.1.0/lib/libalpm/dload.c?ref_type=tags#L1045