Open ynielson opened 1 year ago
This can be closed. Dump doesn't happen.
I need to reopen this ticket. I was again confused with the max string length of the string variable. The core dump happened again depending on the stack size of different machines.
CF app caused core dump after successful CF_GET_MIB_PARAM_CC command execution. The app sent event message saying that the command inquiring MyId was executed successfully and displayed the correct MyId value, which was stored in the MIB. But after that it caused core dump.
The size of destination string was smaller than the size used in strncpy() inside the app. In function, mib__get_parameter(const char param_in, char value) in mib.c, it used strncpy and gave larger size than the destination string variable size. And this caused stack smashing core dump.