]> sourceware.org Git - newlib-cygwin.git/commit
flock.cc: Fix stack allocation from callee used in caller
authorCorinna Vinschen <corinna@vinschen.de>
Tue, 8 Sep 2015 08:57:54 +0000 (10:57 +0200)
committerCorinna Vinschen <corinna@vinschen.de>
Tue, 8 Sep 2015 14:39:54 +0000 (16:39 +0200)
commit44e0f5a7036ef0d40a46d01d868e6db62d1a8cbb
treeac002a778d34252aa02b9a23490cff4b8e81c9fb
parent6d85fc4143c92f7aa3285d058bb05f73a95c5590
flock.cc: Fix stack allocation from callee used in caller

* flock.cc (lockf_t::create_lock_obj_attr): Add buffer parameter.
Call _everyone_sd with buffer argument from caller rather than
everyone_sd with locally allocated stack buffer.
(lockf_t::create_lock_obj): Call create_lock_obj_attr only once
outside the loop and with additional buffer argument.
(lockf_t::open_lock_obj): Call create_lock_obj_attr with additional
buffer argument.
winsup/cygwin/ChangeLog
winsup/cygwin/flock.cc
This page took 0.028654 seconds and 5 git commands to generate.