Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4b7e576

Browse files
author
Reini Urban
committed
coverity: escape_local_addr
escape_local_addr: Returning, through *esp, the address of stack variable x
1 parent af2e8b8 commit 4b7e576

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎core/internal.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ void potion_p(Potion *P, PN x) {
316316

317317
void potion_esp(void **esp) {
318318
PN x;
319-
*esp = (void *)&x;
319+
*esp = (void *)&x;// coverity[escape_local_addr]
320320
}
321321

322322
#ifdef DEBUG

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /