[PATCH] Fix possible crash in svn_fs_fs__lock() / svn_fs_fs__unlock()
From: Sergey Raevskiy <sergey.raevskiy_at_visualsvn.com>
Date: Wed, 4 Feb 2015 22:12:58 +0300
Hi!
Recenty I've discovered possible crash in FSFS locking code. If, for some
This happens beacuse lb.infos field is getting initialized only in function
[[[
...
struct lock_baton lb;
...
lb.fs = fs;
err = svn_fs_fs__with_write_lock(fs, lock_body, &lb, scratch_pool);
...
The same thing with svn_fs_fs__unlock().
I've attached the patch with crashing test and simple fix for this issue.
Log message:
* subversion/subversion/tests/libsvn_fs/locks-test.c
* subversion/subversion/libsvn_fs_fs/lock.c
Patch by: Sergey Raevskiy <sergey.raevskiy{_AT_}visualsvn.com>
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.