Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/include/ssp correct __ssp_overlap() to not trigger for adjac...



details:   https://anonhg.NetBSD.org/src/rev/aab5451d7b06
branches:  trunk
changeset: 340416:aab5451d7b06
user:      plunky <plunky%NetBSD.org@localhost>
date:      Thu Sep 03 20:43:47 2015 +0000

description:
correct __ssp_overlap() to not trigger for adjacent areas

diffstat:

 include/ssp/ssp.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 1aac14d55d74 -r aab5451d7b06 include/ssp/ssp.h
--- a/include/ssp/ssp.h Thu Sep 03 19:43:35 2015 +0000
+++ b/include/ssp/ssp.h Thu Sep 03 20:43:47 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ssp.h,v 1.12 2015/06/25 18:41:03 joerg Exp $   */
+/*     $NetBSD: ssp.h,v 1.13 2015/09/03 20:43:47 plunky Exp $  */
 
 /*-
  * Copyright (c) 2006, 2011 The NetBSD Foundation, Inc.
@@ -79,7 +79,7 @@
     __ssp_redirect_raw(rtype, fun, fun, args, call, 1, __ssp_bos0)
 
 #define __ssp_overlap(a, b, l) \
-    (((a) <= (b) && (b) <= (a) + (l)) || ((b) <= (a) && (a) <= (b) + (l)))
+    (((a) <= (b) && (b) < (a) + (l)) || ((b) <= (a) && (a) < (b) + (l)))
 
 __BEGIN_DECLS
 void __stack_chk_fail(void) __dead;



Home | Main Index | Thread Index | Old Index