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>
Fri, 5 Sep 2014 18:01:13 +0000 (14:01 -0400)
commit3bed89aa7456d9fe30e550cb5e21f8911036695b
tree4cb9f47d5d2fdec6409a259ec8a18a455ea7efc4
parent633183b5d1c298e4335da841926efe96252057b3
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.
src/conf/fpathconf.c