Ivan Poddubny
f9877139df
Astobj2: Correctly treat hash_fn returning INT_MIN
...
The code in astobj2_hash.c wrongly assumed that abs(int) is always > 0.
However, abs(INT_MIN) = INT_MIN and is still negative, as well as
abs(INT_MIN) % num_buckets, and as a result this led to a crash.
One way to trigger the bug is using host=::80 or 0.0.0.128 in peer
configuration section in chan_sip or chan_iax.
This patch takes the remainder before applying abs, so that bucket
number is always in range.
ASTERISK-25100 #close
Reported by: Mark Petersen
Change-Id: Id6981400ad526f47e10bcf7b847b62bd2785e899
2015-05-25 10:12:59 +03:00
..
2015-04-12 13:59:44 -05:00
2015-03-30 02:28:47 +00:00
2015-04-12 13:49:40 -05:00
2014-11-02 07:35:36 +00:00
2014-11-20 16:35:18 +00:00
2014-05-09 22:28:40 +00:00
2012-06-15 16:20:16 +00:00
2015-03-26 22:16:31 +00:00
2014-11-02 08:03:18 +00:00
2012-07-11 17:16:50 +00:00
2012-07-11 17:16:50 +00:00
2012-07-11 17:16:50 +00:00
2015-05-12 10:34:01 -04:00
2013-08-22 08:22:39 +00:00
2015-03-26 22:16:31 +00:00
2015-03-26 22:16:31 +00:00
2015-05-25 10:12:59 +03:00
2015-05-20 16:07:51 -05:00
2012-06-15 16:20:16 +00:00
2014-06-09 03:47:11 +00:00
2014-11-20 14:20:08 +00:00
2014-10-10 12:55:56 +00:00
2015-04-06 18:58:30 +00:00
2013-08-06 08:19:42 +00:00
2015-04-09 12:47:09 +00:00
2015-04-21 16:17:33 -04:00
2015-04-10 16:25:13 +00:00
2012-06-15 16:20:16 +00:00
2015-03-26 22:16:31 +00:00
2014-05-09 22:28:40 +00:00
2015-03-26 22:16:31 +00:00
2015-03-26 22:16:31 +00:00
2012-06-15 16:20:16 +00:00
2014-06-16 09:00:18 +00:00
2014-05-09 22:28:40 +00:00
2013-02-05 18:10:46 +00:00
2012-06-15 16:20:16 +00:00
2015-03-26 22:16:31 +00:00
2015-04-06 18:58:30 +00:00
2015-04-09 12:47:09 +00:00
2015-04-23 11:54:09 -05:00
2015-03-26 22:16:31 +00:00
2015-03-26 22:16:31 +00:00
2012-06-15 16:20:16 +00:00
2012-06-15 16:20:16 +00:00
2013-03-27 19:51:29 +00:00
2015-03-26 22:16:31 +00:00
2015-03-14 02:27:13 +00:00
2015-04-06 17:51:59 +00:00
2012-06-15 16:20:16 +00:00
2012-06-15 16:20:16 +00:00
2012-06-15 16:20:16 +00:00
2012-06-15 16:20:16 +00:00
2012-06-15 16:20:16 +00:00
2013-09-10 17:56:56 +00:00
2015-03-26 22:16:31 +00:00
2015-03-26 22:16:31 +00:00
2015-04-09 12:47:09 +00:00
2014-05-09 22:28:40 +00:00
2015-03-30 02:44:21 +00:00
2015-05-08 08:34:44 -05:00
2015-02-21 02:55:26 +00:00
2014-12-12 23:31:38 +00:00
2015-05-20 21:53:46 -04:00
2015-03-30 11:40:33 +00:00
2015-05-13 10:46:13 -05:00
2015-05-14 11:24:17 -05:00
2015-03-26 22:16:31 +00:00
2015-03-17 21:43:32 +00:00
2014-12-17 09:24:50 +00:00
2015-05-01 08:44:25 -05:00
2012-06-15 16:20:16 +00:00
2015-04-09 12:47:09 +00:00
2012-06-15 16:20:16 +00:00
2015-04-29 16:36:24 -05:00
2014-03-26 22:44:11 +00:00
2015-02-19 01:59:05 +00:00
2015-04-23 11:54:09 -05:00
2012-10-11 15:31:10 +00:00
2014-05-09 22:28:40 +00:00
2012-06-15 16:20:16 +00:00
2013-01-19 20:49:43 +00:00
2015-03-27 07:06:24 +00:00
2015-03-26 22:16:31 +00:00
2015-01-12 18:00:24 +00:00
2015-03-26 22:16:31 +00:00
2015-05-08 08:34:44 -05:00
2012-06-15 16:20:16 +00:00
2012-06-15 16:20:16 +00:00
2015-03-26 22:16:31 +00:00
2015-03-26 22:16:31 +00:00
2015-03-26 22:16:31 +00:00
2015-04-10 16:25:13 +00:00
2015-04-09 12:47:09 +00:00
2012-06-15 16:20:16 +00:00
2015-03-26 22:16:31 +00:00
2012-06-15 16:20:16 +00:00
2015-03-26 22:16:31 +00:00