MCUXpresso 24.12
I wouldn't expect a call to can_init to write to any of the heap memory.
As I mentioned, data (0xff) is being written to bytes 105 and 106 of the temp array. This is not the behaviour i would expect when initialising the can interface. I expect no writes to the temp array other than the memset that initialises it all to 0's.
If I run the example without modifications it behaves as expected. I get a can message being sent, and I can receive can messages.
An interesting note, running the example without modifications, calling init_can writes to the same memory locations as when I add my temp array (using the LPC link 2 to debug).