openocd/src
Paul Fertser 20fcd0729e jtag/tcl: fix incorrect memcpy in jim_newtap_expected_id
Found by clang static checker.

On the very first call of jim_newtap_expected_id() pTap->expected_ids
and expected_len are null, and there's nothing to copy. This patch
changes this cryptic code to use realloc() instead.

Change-Id: Ic0b5140d08257a906f15b55a2ae64db7bc06d5f1
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Reviewed-on: http://openocd.zylin.com/2562
Reviewed-by: Stian Skjelstad <stian@nixia.no>
Tested-by: jenkins
2015-04-14 12:09:48 +01:00
..
flash lpc2000: Removed cmd51_can_xxxxb variables. 2015-04-14 12:03:53 +01:00
helper configure: define WIN32_LEAN_AND_MEAN early to make it effective 2015-02-04 21:56:55 +00:00
jtag jtag/tcl: fix incorrect memcpy in jim_newtap_expected_id 2015-04-14 12:09:48 +01:00
pld update files to correct FSF address 2013-06-05 19:52:42 +00:00
rtos RTOS: Add logging to FreeRTOS and general RTOS 2015-04-14 11:42:58 +01:00
server server, target, cortex_m: add deinit_target to the API to free resources 2015-03-09 08:34:46 +00:00
svf Openocd: svf: Add ability to ignore svf_check_tdo errors 2014-07-03 18:08:48 +00:00
target Cortex-A: Don't flush the data/unified cache if MMU is off 2015-04-14 11:47:48 +01:00
transport transport: make 'transport select' auto-select the first available transport if not set 2015-03-25 21:32:49 +00:00
xsvf update files to correct FSF address 2013-06-05 19:52:42 +00:00
hello.c update files to correct FSF address 2013-06-05 19:52:42 +00:00
hello.h update files to correct FSF address 2013-06-05 19:52:42 +00:00
main.c update files to correct FSF address 2013-06-05 19:52:42 +00:00
Makefile.am Makefile.am: link libusb-1.0 after libusb-0.1 to fix dependencies 2015-02-04 21:56:45 +00:00
openocd.c Added system signal handling to Linux version 2015-03-09 06:25:45 +00:00
openocd.h Fix some problems with the bin2char utility 2014-08-02 09:01:32 +00:00