mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-14 09:12:22 +07:00
[vfs] even stricter input checks in macOS filesystem event helper (IJ-CR-95917)
GitOrigin-RevId: dad56b8aa48b8c1ce6a71773d0058947490de332
This commit is contained in:
committed by
intellij-monorepo-bot
parent
394d8ad5cf
commit
286647ca8b
@@ -119,9 +119,9 @@ static char *read_stdin() {
|
||||
if (result == NULL || feof(stdin)) {
|
||||
return NULL;
|
||||
}
|
||||
size_t pos = strlen(input_buf) - 1;
|
||||
if (input_buf[pos] == '\n') {
|
||||
input_buf[pos] = '\0';
|
||||
size_t length = strlen(input_buf);
|
||||
if (length > 0 && input_buf[length - 1] == '\n') {
|
||||
input_buf[length - 1] = '\0';
|
||||
}
|
||||
return input_buf;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user