mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
* 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>
16 lines
652 B
Diff
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))
|