summaryrefslogtreecommitdiffstats
path: root/xlators/mount/fuse
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2012-08-08 17:11:52 +0200
committerAnand Avati <avati@redhat.com>2012-08-08 23:01:43 -0700
commit94271805633a1ee5487b036dfd81b63c0250df39 (patch)
treeb7f679a4961b07c95dd0738af2483a0b2432a455 /xlators/mount/fuse
parentbfac66f129646bc78f1ed3a7dccb3010114e57aa (diff)
geo-rep: don't leak or segfault upon OOM
In glusterd_urltransform, a failed GF_REALLOC would clobber the would-be-realloc'd buffer, linearr, with a NULL pointer, (thus leaking that memory) and then control would pass to the error-handling code that would attempt to free (via glusterd_urltransform_free) linearr[i], which is almost guaranteed to segfault when linearr is NULL. Change-Id: Ia75bf70fd8ff893a18804d49688048ef96db6037 BUG: 846755 Signed-off-by: Jim Meyering <meyering@redhat.com> Reviewed-on: http://review.gluster.com/3791 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'xlators/mount/fuse')
0 files changed, 0 insertions, 0 deletions