diff options
author | Joel Brobecker <brobecker@adacore.com> | 2015-10-09 14:16:45 -0700 |
---|---|---|
committer | Joel Brobecker <brobecker@adacore.com> | 2015-10-09 14:33:57 -0700 |
commit | 5b639deae123db13af61e915807c0a1ab224e246 (patch) | |
tree | 31bbfa42c6d6b1ac4df639f8f7ff88e5fac65e9c /gas | |
parent | 0cafa88cc03786fb5794ca53e987e45fd09621f8 (diff) | |
download | gdb-5b639deae123db13af61e915807c0a1ab224e246.zip gdb-5b639deae123db13af61e915807c0a1ab224e246.tar.gz gdb-5b639deae123db13af61e915807c0a1ab224e246.tar.bz2 |
[Ada] ada_unpack_from_contents: Error if target buffer not large enough
This adds a guard that the size of the "unpacked" buffer is large enough
to contain at least BIT_SIZE bits. If not, report an error. This is to
guard this routine from doing buffer overflows when called incorrectly.
gdb/ChangeLog:
* ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
is large enough for BIT_SIZE. Update function comment.
Diffstat (limited to 'gas')
0 files changed, 0 insertions, 0 deletions