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

Sascha Wildner swildner at crater.dragonflybsd.org
Mon Feb 15 01:32:08 PST 2021


commit 923bc8338178bd8d7bbca621b82d330cefd33c60
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/923bc8338178bd8d7bbca621b82d330cefd33c60


-- 
DragonFly BSD source repository



More information about the Commits mailing list