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:46:28 -0700 |
commit | cc477c7da1b543d51939aba919155a651099d4ba (patch) | |
tree | d582b3cfc9a2c8232f073ff251a79ae17e12229c /argp-standalone/argp-help.c | |
parent | 878bc03d7df8e18faca13fbf89a7ae55a29b0fdc (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/5237
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 'argp-standalone/argp-help.c')
0 files changed, 0 insertions, 0 deletions