diff options
author | Anand Avati <avati@redhat.com> | 2013-06-16 06:19:52 -0700 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2013-06-20 01:45:50 -0700 |
commit | d7e80787fc61a4fe9e72ff80565dc720ac29441a (patch) | |
tree | db86c0bd03339b5265b7c6da1e6ed025d5c61812 /libglusterfs/src | |
parent | cc9ca7d2b2f5c91d80265c28ca724cb233c2bd77 (diff) |
gfapi: fix read past EOF in glfs_preadv()
When syncop_preadv() returns 0, we are returning @size as-is
(without modifying user passed buffer). This results in
junk data being read when read offset is at or beyond EOF.
Change-Id: I8aa9c957359f9a52833b944b452f501b6f5538d3
BUG: 953694
Signed-off-by: Anand Avati <avati@redhat.com>
Reviewed-on: http://review.gluster.org/5236
Reviewed-by: Raghavendra Talur <rtalur@redhat.com>
Reviewed-by: José Rivera <jrivera@redhat.com>
Tested-by: José Rivera <jrivera@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'libglusterfs/src')
0 files changed, 0 insertions, 0 deletions