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)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 3 May 2018 07:51:41 +0000 (16:51 +0900)
commit08d3fdc37eee9e47084742f837da73878c7aa66f
tree88df8a53bfcc9d3d2df85138c1aac596202af348
parentb296797f1ce68d9ab34e39b6e4383f2a18ed73df
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