Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nadezhda Ivanova
OpenLDAP
Commits
81984ab2
Commit
81984ab2
authored
Jul 26, 2017
by
Howard Chu
Browse files
Fix 418ea8b94e SEGV on spilled ovpg
Don't spill an ovpg that is referenced in a cursor
parent
adfa8f75
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/liblmdb/mdb.c
View file @
81984ab2
...
...
@@ -2298,6 +2298,9 @@ mdb_pages_xkeep(MDB_cursor *mc, unsigned pflags, int all)
if
(
IS_DIRTY_NW
(
txn
,
mp
))
mp
->
mp_flags
^=
P_KEEP
;
}
if
(
MC_OVPG
(
m3
)
&&
((
MC_OVPG
(
m3
)
->
mp_flags
&
Mask
)
==
pflags
)
&&
IS_DIRTY_NW
(
txn
,
MC_OVPG
(
m3
)))
MC_OVPG
(
m3
)
->
mp_flags
^=
P_KEEP
;
mx
=
m3
->
mc_xcursor
;
/* Proceed to mx if it is at a sub-database */
if
(
!
(
mx
&&
(
mx
->
mx_cursor
.
mc_flags
&
C_INITIALIZED
)))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment