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/334885abb576
branches:  trunk
changeset: 433620:334885abb576
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 20aa6b2c7bc5 -r 334885abb576 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