diff options
author | Yao Qi <yao@codesourcery.com> | 2014-01-20 20:56:13 +0800 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2014-02-05 20:25:47 +0800 |
commit | 8dc5b31971ad5dddf5e6efa07cf70d094c1a9fe5 (patch) | |
tree | bc4a4c5e809bfda5c1feff8d3228b7e7a80b32f8 /bfd/elf32-tic6x.c | |
parent | de7b2893853cd1122b223a2023fdc35b41a26960 (diff) | |
download | gdb-8dc5b31971ad5dddf5e6efa07cf70d094c1a9fe5.zip gdb-8dc5b31971ad5dddf5e6efa07cf70d094c1a9fe5.tar.gz gdb-8dc5b31971ad5dddf5e6efa07cf70d094c1a9fe5.tar.bz2 |
Use rs->buf after getpkt
Hi,
The following code snippet looks wrong to me
char *buf = rs->buf;
getpkt (&rs->buf, &rs->buf_size, 0);
packet_ok (buf, );
if rs->buf is reallocated in getpkt, buf points to an out of dated
memory. This patch removes local 'buf' and uses rs->buf.
gdb:
2014-02-05 Yao Qi <yao@codesourcery.com>
* remote.c (remote_pass_signals): Remove local 'buf' and use
rs->buf.
(remote_program_signals): Likewise.
Diffstat (limited to 'bfd/elf32-tic6x.c')
0 files changed, 0 insertions, 0 deletions