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)
commit5c5bb51482080b57b92ef51fa1cd3a1b19169877
tree5a46c5b8b1c4cdf4a014faff64000024d8fe5412
parent51a62c4a03644997b84fe752f3a348cd29176561
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