]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: lockf: Fix access violation in lf_clearlock().
authorTakashi Yano <takashi.yano@nifty.ne.jp>
Wed, 13 Nov 2024 15:44:41 +0000 (00:44 +0900)
committerTakashi Yano <takashi.yano@nifty.ne.jp>
Wed, 20 Nov 2024 12:05:04 +0000 (21:05 +0900)
commite7ef920d7d0dcff8cfe7a0c914f803b8c78900bb
tree0ebe110955afb18853234f993c3cdc0fe94d8fb7
parent5daf14f5f5a8c5f2ce859fed3b997c02ebdd5f67
Cygwin: lockf: Fix access violation in lf_clearlock().

The commit ae181b0ff122 has a bug that the pointer is referred bofore
NULL check in the function lf_clearlock(). This patch fixes that.

Addresses: https://cygwin.com/pipermail/cygwin/2024-November/256750.html
Fixes: ae181b0ff122 ("Cygwin: lockf: Make lockf() return ENOLCK when too many locks")
Reported-by: Sebastian Feld <sebastian.n.feld@gmail.com>
Reviewed-by: Corinna Vinschen <corinna@vinschen.de>
Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
winsup/cygwin/flock.cc
winsup/cygwin/release/3.5.5
This page took 0.028714 seconds and 5 git commands to generate.