Skip to content

Commit ddec9f8

Browse files
authored
Merge pull request #71 from sean-jc/master
Bug fix - mprotect may be called with wrong flags Signed-off-by: lzha101 <[email protected]>
2 parents dd537b7 + 7534945 commit ddec9f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

psw/urts/loader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ int CLoader::set_context_protection(layout_t *layout_start, layout_t *layout_end
752752
if (!IS_GROUP_ID(layout->group.id))
753753
{
754754
int prot = 0 ;
755-
if(layout->entry.attributes == SI_FLAG_NONE)
755+
if(layout->entry.si_flags == SI_FLAG_NONE)
756756
{
757757
prot = SI_FLAG_NONE & SI_MASK_MEM_ATTRIBUTE;
758758
}

0 commit comments

Comments
 (0)