chiark / gitweb /
util: make signal_from_string() accept RTMIN, RTMAX, and RTMAX-n
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 3 May 2018 07:40:02 +0000 (16:40 +0900)
committerSven Eden <yamakuzure@gmx.net>
Fri, 24 Aug 2018 14:47:08 +0000 (16:47 +0200)
commitbfb9b76f0e162a90d3c7f4e508d8be1cab4e1b31
tree7feb02785a1bc9d925ccfc1323727131b4125ba1
parenta300748bf4facf44de7e9e39fcc93682b0514676
util: make signal_from_string() accept RTMIN, RTMAX, and RTMAX-n

Before this, `signal_from_string()` accepts simple signal name
or RTMIN+n. This makes the function also accept RTMIN, RTMAX,
and RTMAX-n.
Note that RTMIN+0 is equivalent to RTMIN, and RTMAX-0 is to RTMAX.

This also fixes the integer overflow reported by oss-fuzz #8064.
https://oss-fuzz.com/v2/testcase-detail/5648573352902656
src/basic/signal-util.c