path: root/xlators/features/changelog/lib/src/gf-changelog-rpc.h
diff options
authorMichael Adam <>2015-03-31 02:28:07 +0200
committerVijay Bellur <>2015-04-02 06:27:51 -0700
commitf4be9bc3c530ab35a0cd1939df8c43abe54e540d (patch)
treea0e8ca2cd15e5a1cb54adf1536504078f4c0956e /xlators/features/changelog/lib/src/gf-changelog-rpc.h
parent41bc3f7f023de198c695bdb7708afef3910cc761 (diff)
features/changelog: fix possible illegal mem access (CID 1288822)
Coverity CID 1288822 (#1 of 2) strncpy executed with a limit equal to the target array size potentially leaves the target string not null terminated. In this case the strncpy is not needed due to the snprintf with the same target buffer which follows immediately. This patch also removes the now unneeded scratch_dir argument to gf_changelog_init_history(), which is semantically correct, since scratch_dir has previously been filled into jnl->jnl_working_dir by the caller, and this is now used to fill hist_scratch_dir. Change-Id: Ib1ed3a1058e80e34191758921b49c29030d6c9db BUG: 789278 Signed-off-by: Michael Adam <> Reviewed-on: Reviewed-by: Kotresh HR <> Tested-by: Gluster Build System <> Reviewed-by: Vijay Bellur <>
Diffstat (limited to 'xlators/features/changelog/lib/src/gf-changelog-rpc.h')
0 files changed, 0 insertions, 0 deletions