Skip to content

Commit 43fbcbd

Browse files
committed
[IPCProtocol] Prevent LoadProfiler read past buffer
1 parent d946efe commit 43fbcbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/native/eventpipe/ds-profiler-protocol.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ attach_profiler_command_try_parse_payload (
7070
!ds_ipc_message_try_parse_value (&buffer_cursor, &buffer_cursor_len, (uint8_t *)&instance->profiler_guid, (uint32_t)ARRAY_SIZE (instance->profiler_guid)) ||
7171
!ds_ipc_message_try_parse_string_utf16_t (&buffer_cursor, &buffer_cursor_len, &instance->profiler_path) ||
7272
!ds_ipc_message_try_parse_uint32_t (&buffer_cursor, &buffer_cursor_len, &instance->client_data_len) ||
73-
!(buffer_cursor_len <= instance->client_data_len))
73+
!(buffer_cursor_len >= instance->client_data_len))
7474
ep_raise_error ();
7575

7676
instance->client_data = buffer_cursor;

0 commit comments

Comments
 (0)