Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v0.6.769 #580

Merged
merged 4 commits into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions common/interfaces/desktop_app_interface/usb_internals.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,12 @@ static comm_error_code_t comm_process_cmd_packet(const packet_t *rx_packet) {
// Duplicate packets are ignored; Only packets in expected sequence are
// appended to buffer
comm_status.curr_cmd_chunk_no = rx_packet->header.chunk_number;

if ((COMM_BUFFER_SIZE - comm_status.curr_cmd_received_length) <
rx_packet->header.payload_length) {
return INVALID_PAYLOAD_LENGTH;
}

memcpy(comm_io_buffer + comm_status.curr_cmd_received_length,
rx_packet->payload,
rx_packet->header.payload_length);
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
firmware version=000:006:003:000
firmware version=000:006:003:001
hardware version=000:001:000:000
magic number=45227A01
Loading