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/e2e6bf872807
branches:  trunk
changeset: 379430:e2e6bf872807
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 7729c6ec2405 -r e2e6bf872807 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 @@ public:
   }
 
   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