readdir: string length bug fix
authorb2m <>
Wed, 3 Dec 2014 21:35:30 +0000 (16:35 -0500)
committerAlexander Tsidaev <a.tsidaev@gmail.com>
Wed, 3 Dec 2014 21:35:30 +0000 (16:35 -0500)
commit70572e02ff7c8896299249401cb83dd0929a172f
tree526d6a0980d353bb33defed4b7995ddd092d4214
parentd11411534784a5a329b87a32911bc32ed2e11444
readdir: string length bug fix

If len is 32 (maximum possible value), then we going to write at buf->d_name[31]. Since the d_name length is 31, write is performed outside the string boundaries.
Library/libs/readdir.c