fix off-by-one in bounds check in fpathconf
authorRich Felker <dalias@aerifal.cx>
Fri, 5 Sep 2014 18:01:13 +0000 (14:01 -0400)
committerRich Felker <dalias@aerifal.cx>
Mon, 30 Mar 2015 05:15:44 +0000 (01:15 -0400)
commit5a8c6f09327f7dd4d0d02f7ffeaaf9137d119c30
tree0c770a9d25aa3796a386037e8a75fad8f4de87b0
parentf071365e66174937ffcb68c103e68573ce7dfd13
fix off-by-one in bounds check in fpathconf

this error resulted in an out-of-bounds read, as opposed to a reported
error, when calling the function with an argument one greater than the
max valid index.

(cherry picked from commit 3bed89aa7456d9fe30e550cb5e21f8911036695b)
src/conf/fpathconf.c