diff options
author | Joel Brobecker <brobecker@gnat.com> | 2012-03-13 22:27:11 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2012-03-13 22:27:11 +0000 |
commit | 7e0874ee6165f4284daf1d378fe44a665ee46be1 (patch) | |
tree | 96de4365820cacc5d4a44124e08e216c65a7b12d /gdb/aix-thread.c | |
parent | 3b8846cfe9c3f6f33666d8d22dfd0efbd67edb22 (diff) | |
download | gdb-7e0874ee6165f4284daf1d378fe44a665ee46be1.tar.gz |
Fix buffer overflow in aix-thread.c:fill_fprs
gdb/
2012-03-08 Chris January <chris.january@allinea.com>
* aix-thread.c (fill_sprs): Store the floating point registers
at the correct offsets into vals.
Diffstat (limited to 'gdb/aix-thread.c')
-rw-r--r-- | gdb/aix-thread.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/aix-thread.c b/gdb/aix-thread.c index 3cdab4852cc..f9787e3ab7a 100644 --- a/gdb/aix-thread.c +++ b/gdb/aix-thread.c @@ -1356,7 +1356,8 @@ fill_fprs (const struct regcache *regcache, double *vals) regno < tdep->ppc_fp0_regnum + ppc_num_fprs; regno++) if (REG_VALID == regcache_register_status (regcache, regno)) - regcache_raw_collect (regcache, regno, vals + regno); + regcache_raw_collect (regcache, regno, + vals + regno - tdep->ppc_fp0_regnum); } /* Store the special registers into the specified 64-bit and 32-bit |