achimdoebler / UGUI

µGUI - Open Source GUI module for embedded systems
Other
1.2k stars 415 forks source link

ugui.c : stack address is assigned to a non-local variable #51

Open b4yuan opened 11 months ago

b4yuan commented 11 months ago

In line 5650:

msg.src = &obj;

Instance where a stack address is assigned to a non-local variable. Storing the address of a local variable in non-local memory can cause a dangling pointer bug if the address is used after the function returns.