diff options
author | Pedro Franco de Carvalho <pedromfc@linux.ibm.com> | 2018-08-06 16:24:55 -0300 |
---|---|---|
committer | Pedro Franco de Carvalho <pedromfc@linux.ibm.com> | 2018-08-06 16:43:28 -0300 |
commit | 296956befef3711ed458c7cba8041fde0dab9c50 (patch) | |
tree | ebdc070830a5e7ae483d398218efb3a915216d0b /gold | |
parent | a04b9d62a234923826e431a209d396a628661548 (diff) | |
download | gdb-296956befef3711ed458c7cba8041fde0dab9c50.zip gdb-296956befef3711ed458c7cba8041fde0dab9c50.tar.gz gdb-296956befef3711ed458c7cba8041fde0dab9c50.tar.bz2 |
Allow larger regblock sizes when saving tracefiles
The tracefile.c:trace_save function assumes trace_regblock_size won't
be larger than the MAX_TRACE_UPLOAD constant, used to size the buffer
which holds trace data. This can cause buffer overruns when this is
not the case. This patch changes this function so that the larger
size is used to size the buffer.
gdb/ChangeLog:
2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
* tracefile.c: Include common/byte-vector.h.
(trace_save): Change type of buf to gdb::byte_vector. Initialize
with trace_regblock_size if needed. Update uses of buf.
Diffstat (limited to 'gold')
0 files changed, 0 insertions, 0 deletions