Преглед изворни кода

Merge pull request #71 from sean-jc/master

Bug fix - mprotect may be called with wrong flags

Signed-off-by:  lzha101 <lili.z.zhang@intel.com>
lzha101 пре 7 година
родитељ
комит
ddec9f8725
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      psw/urts/loader.cpp

+ 1 - 1
psw/urts/loader.cpp

@@ -752,7 +752,7 @@ int CLoader::set_context_protection(layout_t *layout_start, layout_t *layout_end
         if (!IS_GROUP_ID(layout->group.id))
         {
             int prot = 0 ;
-            if(layout->entry.attributes == SI_FLAG_NONE)
+            if(layout->entry.si_flags == SI_FLAG_NONE)
             {
                 prot = SI_FLAG_NONE & SI_MASK_MEM_ATTRIBUTE;
             }