Skip to content

Commit

Permalink
Bug fix: socket reference count made 16-bit (ARMmbed#2490)
Browse files Browse the repository at this point in the history
Increased heap size allowed reference count overflow causing memory corruption
  • Loading branch information
Jarkko Paso authored Nov 9, 2020
1 parent f51669a commit 6f52171
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/Core/include/ns_socket.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ typedef struct socket {
int8_t id; /*!< socket id */
uint8_t flags; /*!< Socket option flags */
int8_t tasklet; /*!< Receiver tasklet */
uint8_t refcount;
uint16_t refcount;
socket_family_t family;
socket_type_t type;
int8_t default_interface_id;
Expand Down

0 comments on commit 6f52171

Please sign in to comment.