Open szsam opened 1 year ago
https://github.com/symisc/PH7/blob/c9cde8652331559a3e470b42d9705a56f73aaa31/ph7.c#L38377-L38392 The address of local variable result is assigned to non-local variables pA->pNext and pB->pNext. 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.
result
pA->pNext
pB->pNext
https://github.com/symisc/PH7/blob/c9cde8652331559a3e470b42d9705a56f73aaa31/ph7.c#L38377-L38392 The address of local variable
result
is assigned to non-local variablespA->pNext
andpB->pNext
. 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.