Source-Changes-HG archive

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

[src/trunk]: src/sys/lib/libunwind PR toolchain/55837



details:   https://anonhg.NetBSD.org/src/rev/23561634e977
branches:  trunk
changeset: 1021461:23561634e977
user:      rin <rin%NetBSD.org@localhost>
date:      Mon May 31 11:44:06 2021 +0000

description:
PR toolchain/55837

copyFloatVectorRegister(): Assert register number is valid to make sure.

diffstat:

 sys/lib/libunwind/Registers.hpp |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 4f4a1ee67e2f -r 23561634e977 sys/lib/libunwind/Registers.hpp
--- a/sys/lib/libunwind/Registers.hpp   Mon May 31 11:41:22 2021 +0000
+++ b/sys/lib/libunwind/Registers.hpp   Mon May 31 11:44:06 2021 +0000
@@ -382,6 +382,7 @@
   }
 
   void copyFloatVectorRegister(int num, uint64_t addr_) {
+    assert(validFloatVectorRegister(num));
     const void *addr = reinterpret_cast<const void *>(addr_);
     if (num >= REGNO_ARM32_S0 && num <= REGNO_ARM32_S31) {
       if ((flags & FLAGS_VFPV2_USED) == 0) {



Home | Main Index | Thread Index | Old Index