Skip to content

Commit

Permalink
enlarge the CTAP buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
z4yx committed Aug 5, 2023
1 parent e8f7cd5 commit 8b77624
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions interfaces/USB/class/ctaphid/ctaphid.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ uint8_t CTAPHID_Loop(uint8_t wait_for_user) {
}
channel.bcnt_total = (uint16_t)MSG_LEN(frame);
if (channel.bcnt_total > MAX_CTAP_BUFSIZE) {
DBG_MSG("bcnt_total=%hu exceeds MAX_CTAP_BUFSIZE\n", channel.bcnt_total);
CTAPHID_SendErrorResponse(frame.cid, ERR_INVALID_LEN);
return LOOP_SUCCESS;
}
Expand Down
2 changes: 1 addition & 1 deletion interfaces/USB/class/ctaphid/ctaphid.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ typedef struct {
#define LOOP_SUCCESS 0x00
#define LOOP_CANCEL 0x01

#define MAX_CTAP_BUFSIZE 1280
#define MAX_CTAP_BUFSIZE 1300

typedef struct {
uint32_t cid;
Expand Down

0 comments on commit 8b77624

Please sign in to comment.