Skip to content

Commit bdcf77d

Browse files
authored
Fix asan.test_proc_self_fd (#13540)
1 parent 67ccdfa commit bdcf77d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/fs/test_proc_self_fd.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ int main(int argc, char* argv[]) {
2222
char buf[1024];
2323
ssize_t s = readlink("/proc/self/fd/0", buf, 1024);
2424
assert(s > 0);
25+
buf[s] = 0;
2526
printf("fd0: %s\n", buf);
2627

2728
printf("done\n");

0 commit comments

Comments
 (0)