Loading
acct: repair buffer overflow with dump-acct
The failure is encountered when doing like ``` $ sudo mkdir -p /var/log/account; $ sudo touch /var/log/account/pacct; $ nix build 'github:nixos/nixpkgs#acct' -o ./result-acct; $ sudo ./result-acct/bin/accton on; # writing to /var/log/account/pacct $ sudo ./result-acct/bin/dump-acct /var/log/account/pacct *** buffer overflow detected ***: terminated [1] 37428 abort sudo dump-acct /var/log/account/pacct ``` and is apparently rooted in FORTIFY_SOURCE_3. I found out that Gentoo users had already hit and reported this [1] but they found that Fedora users had already hit, reported, and fixed this [2]. So, I'm bringing in Fedora's patch. [1] - https://bugs.gentoo.org/925419#c14 [2] - https://bugzilla.redhat.com/show_bug.cgi?id=2190057