Movatterモバイル変換


[0]ホーム

URL:


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

Commitf8cf0c4

Browse files
authored
Merge pull request#421 from eriksjolund/handle-malloc-failure
composefs-info: Handle malloc failure
2 parents6efe5de +cdd2543 commitf8cf0c4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎tools/composefs-info.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,8 @@ static char *node_build_path(struct lcfs_node_s *node)
159159
}
160160

161161
char*path=malloc(pathlen+1);
162+
if (path==NULL)
163+
oom();
162164
char*p=path+pathlen;
163165
*p=0;
164166

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp