[prev in list] [next in list] [prev in thread] [next in thread]
List: dragonfly-commits
Subject: git: kill(1): Don't kill pid -1 on overflow from strtol(3).
From: Sascha Wildner <swildner () crater ! dragonflybsd ! org>
Date: 2020-09-26 9:50:35
Message-ID: 20200926095036.16B63C533B3 () crater ! dragonflybsd ! org
[Download RAW message or body]
commit f21fe77e8cca3515787d3d3500ece3dd6a91ff94
Author: Krzysztof Piecuch <piecuch@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@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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic