From: Stefan Berger Subject: [PATCH] [ACM] Check boundary conditions - a fix Date: Sat, 21 Jul 2007 12:56:04 -0400 Message-ID: <1185036964.3555.1.camel@gsal-3.watson.ibm.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-8e1iU0nK/wi4LkHBnUQm" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel Cc: Keir Fraser , sailer@us.ibm.com List-Id: xen-devel@lists.xenproject.org --=-8e1iU0nK/wi4LkHBnUQm Content-Type: text/plain Content-Transfer-Encoding: 7bit This goes on top of the previously posted patch to fix a problem with the logic... Signed-off-by: Stefan Berger --=-8e1iU0nK/wi4LkHBnUQm Content-Disposition: attachment; filename=acm_boundary_check_fix.diff Content-Type: text/x-patch; name=acm_boundary_check_fix.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit Index: root/xen-unstable.hg/xen/acm/acm_simple_type_enforcement_hooks.c =================================================================== --- root.orig/xen-unstable.hg/xen/acm/acm_simple_type_enforcement_hooks.c +++ root/xen-unstable.hg/xen/acm/acm_simple_type_enforcement_hooks.c @@ -42,7 +42,7 @@ static inline int have_common_type (ssid int i; if ( ref1 >= 0 && ref1 < ste_bin_pol.max_ssidrefs && - ref2 >= 0 && ref2 > ste_bin_pol.max_ssidrefs ) + ref2 >= 0 && ref2 < ste_bin_pol.max_ssidrefs ) { for( i = 0; i< ste_bin_pol.max_types; i++ ) if ( ste_bin_pol.ssidrefs[ref1*ste_bin_pol.max_types + i] && --=-8e1iU0nK/wi4LkHBnUQm Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=-8e1iU0nK/wi4LkHBnUQm--