On Mon, May 30, 2011 at 5:47 PM, Mahr, Stefan <[email protected]> wrote:
>>> lead to the NULL pointer dereference in the time of jtag data scan >>> execution (r is a automatic variable, local to the >>> mips_ejtag_fastdata_scan() function) ? >> Correction, not NULL pointer, but some trash value pointer from the >> no longer valid stack. > > No, buf_get_u32 fills r[4]. The initial value does not matter. No, I meant about r array. this array is a local variable allocated on a stack. Where is it referenced again ? Outside of this function ? I do not know very well the OpenOCD architecture, I am afraid that this reference might be used during jtag data scan execute function and that at this moment it will not be valid anymore (although I am obviously wrong, since you confirm that it works and you saw no sigfaults). BR, Drasko _______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
