jilles 3c6c0527e6 sh: Fix some arithmetic undefined behaviour.
Fix shifts of possibly negative numbers found with ubsan and avoid signed
integer overflow when hashing an extremely long command name.

MFC after:	1 week
2015-06-24 20:51:48 +00:00
..
2015-02-15 21:47:43 +00:00
2015-03-01 22:32:23 +00:00
2015-03-01 22:32:23 +00:00
2014-12-21 22:18:30 +00:00
2015-03-01 22:32:23 +00:00
2014-05-09 13:27:30 +00:00
2015-06-13 19:20:56 +00:00
2013-04-07 16:28:36 +00:00
2015-03-01 22:32:23 +00:00
2014-10-05 21:51:36 +00:00
2013-07-25 19:48:15 +00:00
2013-07-25 15:08:41 +00:00