Message ID | 20220301061445.7626-2-ihsinme@gmail.com |
---|---|
State | New |
Headers | show |
Series | fix writing out of bounds array | expand |
diff --git a/src/device.c b/src/device.c index 52e2399dd..3992f9a0c 100644 --- a/src/device.c +++ b/src/device.c @@ -3831,7 +3831,7 @@ static int load_chrc(char *handle, char *value, uint16_t properties, value_handle, handle_int; char uuid_str[MAX_LEN_UUID_STR]; struct gatt_db_attribute *att; - char val_str[32]; + char val_str[33]; uint8_t val[16]; size_t val_len; bt_uuid_t uuid;