crash.software
Projects
Pull Requests
Issues
Builds
zygisk-reflutter
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
zygisk-reflutter
Commits
8bf9fdda
🤬
Sign In
handle null string
U-SOPHIE\yohan
committed
1 month ago
8bf9fdda
1 parent
55c8b4ed
Total 1 files
■ ■ ■ ■
■
■
app/src/main/cpp/native-lib.cpp
skipped 24 lines
25
25
}
26
26
27
27
static void send_string(int fd, const char *str) {
28
-
int len =
strlen
(
str
)
;
28
+
int len =
0
;
29
+
if (str) {
30
+
len = strlen(str);
31
+
}
29
32
write(fd, &len, sizeof(len));
30
33
write(fd, str, len);
31
34
}
skipped 257 lines
All occurrences
Please wait...
Page is in error, reload to recover