ranges: add a sanity check in str_to_rl_helper()
commitdadfd73695cc511c43c4abfe4cde5043dd0c96df
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 23 Aug 2017 13:03:32 +0000 (23 16:03 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Wed, 23 Aug 2017 13:03:32 +0000 (23 16:03 +0300)
treeb75862619001e65719fc1d5cd12f911d0df25f8f
parenta67fb698984d00f5e8781f9095f16dce1ea10c1a
ranges: add a sanity check in str_to_rl_helper()

Ideally we wouldn't hit this...  I'm not sure that we do.  I wrote this
code and then waffled about committing it because it sort of papers over
bugs if new bugs are added.  Anyway, if the DB has invalid data, just cap
it at the type limits.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch_ranges.c