Files
gentoo/sys-process/acct/files/acct-6.6.4-fortify-source-3-sprintf-buffer-overflow.patch
Sam James 038e31c37d sys-process/acct: update EAPI 7 -> 8, fix _F_S=3 crash, fix startup
* EAPI 8
* Fix crash with _FORTIFY_SOURCE=3 (bug #925419)
* Use tmpfiles to create /var/accounts/pacct which fixes startup/use on new installs
* Drop ancient workaround (bug #239748)

Bug: https://bugs.gentoo.org/239748
Signed-off-by: Sam James <sam@gentoo.org>
2024-03-01 07:54:39 +00:00

16 lines
652 B
Diff

https://bugs.gentoo.org/925419
https://bugzilla.redhat.com/2190057
https://src.fedoraproject.org/rpms/psacct/blob/rawhide/f/psacct-6.6.4-sprintf-buffer-overflow.patch
--- a/dev_hash.c
+++ b/dev_hash.c
@@ -147,7 +147,7 @@ static void setup_devices(char *dirname)
{
char *fullname = (char *) alloca ((strlen (dirname)
+ NAMLEN (dp)
- + 1) * sizeof (char));
+ + 2) * sizeof (char)); /* slash + null; Fedora BZ#2190057 */
(void)sprintf (fullname, "%s/%s", dirname, dp->d_name);
if (stat (fullname, &sp))