Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/amd64/amd64 Don't go beyond start().



details:   https://anonhg.NetBSD.org/src/rev/e56953c63b94
branches:  trunk
changeset: 836056:e56953c63b94
user:      maxv <maxv%NetBSD.org@localhost>
date:      Mon Sep 24 05:47:33 2018 +0000

description:
Don't go beyond start().

diffstat:

 sys/arch/amd64/amd64/asan.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 86702b4d7c13 -r e56953c63b94 sys/arch/amd64/amd64/asan.c
--- a/sys/arch/amd64/amd64/asan.c       Mon Sep 24 00:45:12 2018 +0000
+++ b/sys/arch/amd64/amd64/asan.c       Mon Sep 24 05:47:33 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: asan.c,v 1.7 2018/08/27 08:53:19 maxv Exp $    */
+/*     $NetBSD: asan.c,v 1.8 2018/09/24 05:47:33 maxv Exp $    */
 
 /*
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: asan.c,v 1.7 2018/08/27 08:53:19 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: asan.c,v 1.8 2018/09/24 05:47:33 maxv Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -297,6 +297,9 @@
                }
 
                rbp = (uint64_t *)*(rbp);
+               if (rbp == 0) {
+                       break;
+               }
                nsym++;
 
                if (nsym >= 15) {



Home | Main Index | Thread Index | Old Index