Allan McRae pushed to branch master at Pacman / Pacman


Commits:
5e049626 by Ivan Shapovalov at 2024-03-13T04:32:42+01:00
make_aligned_titles: pass the correct buffer length

The third parameter to wcstombs() is the length of the output buffer
(first parameter) in bytes. Take the correct sizeof() here.

This is not a problem in practice, but prevents _FORTIFY_SOURCE=3 from
detecting a possible output buffer overflow (as the source buffer is
bigger than the destination).

Fixes #104.

Signed-off-by: Ivan Shapovalov <inte...@intelfx.name>

- - - - -


1 changed file:

- src/pacman/package.c


View it on GitLab: 
https://gitlab.archlinux.org/pacman/pacman/-/commit/5e0496260b7d3f9c9fcf2b1c4899e4dbcc20ff03

-- 
View it on GitLab: 
https://gitlab.archlinux.org/pacman/pacman/-/commit/5e0496260b7d3f9c9fcf2b1c4899e4dbcc20ff03
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to