Description of problem: Our code scanner has reported a potential null pointer dereference, in function `error_gen_writev` of xlators/debug/error-gen/src/error-gen.c: shortvec = iov_dup(vector, 1); shortvec->iov_len /= 2; // <== use of potential NULL There are null checks after `iov_dup` in other places, so I thought the programmer had forgotten to add one in above: https://github.com/gluster/glusterfs/blob/3dce15e10c263e8e071b26046568e0a171a3153d/xlators/cluster/ec/src/ec-inode-read.c#L1292-L1293 https://github.com/gluster/glusterfs/blob/3dce15e10c263e8e071b26046568e0a171a3153d/xlators/cluster/ec/src/ec-inode-read.c#L1226-L1227 Regards, Alex, SourceBrella Inc.
could anyone take a quick look and see if it needs a fix?
This bug reported is against a version of Gluster that is no longer maintained (or has been EOL'd). See https://www.gluster.org/release-schedule/ for the versions currently maintained. As a result this bug is being closed. If the bug persists on a maintained version of gluster or against the mainline gluster repository, request that it be reopened and the Version field be marked appropriately.