git: kill(1): Don't kill pid -1 on overflow from strtol(3).

Sascha Wildner swildner at crater.dragonflybsd.org
Sat Sep 26 02:50:35 PDT 2020


commit f21fe77e8cca3515787d3d3500ece3dd6a91ff94
Author: Krzysztof Piecuch <piecuch at protonmail.com>
Date:   Fri Sep 11 17:53:10 2020 +0000

    kill(1): Don't kill pid -1 on overflow from strtol(3).
    
    Port freebsd/freebsd at 908622a5632a1a9aa5dda2a1fc7ce9f0102f6327
    Store the result in a proper long and then compare to the proper pid_t
    for overflow so that no MD assumptions are made.
    
    Taken-from: FreeBSD

Summary of changes:
 bin/kill/Makefile |  3 +--
 bin/kill/kill.1   |  2 +-
 bin/kill/kill.c   | 22 ++++++++++++++++------
 3 files changed, 18 insertions(+), 9 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f21fe77e8cca3515787d3d3500ece3dd6a91ff94


-- 
DragonFly BSD source repository



More information about the Commits mailing list