math: enhance the endloop condition of function handle_input_flag
commitdae7bf38978294f7d1aeece7f31c738281a3ba04
authorliqingqing <liqingqing3@huawei.com>
Thu, 7 Nov 2019 00:26:54 +0000 (7 00:26 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Thu, 7 Nov 2019 00:26:54 +0000 (7 00:26 +0000)
treeb60efe75e5473fb8992199f8ed70a90d57151af4
parent807edded258e888dbfa0d19ca967d6e42882d069
math: enhance the endloop condition of function handle_input_flag

In the function handle_input_flag, the end-loop condition is not
correct, because when the loop variable i equals 16
(num_input_flag_types), then input_flags[16] will be out of bounds.
(This issue is only relevant with invalid input files to
gen-auto-libm-tests.)
math/gen-auto-libm-tests.c