-
Notifications
You must be signed in to change notification settings - Fork 7.2k
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
esp_hidh report map length checking function (IDFGH-5889) #7586
Labels
Comments
github-actions
bot
changed the title
esp_hidh report map length checking function
esp_hidh report map length checking function (IDFGH-5889)
Sep 21, 2021
@guo-max Thanks! We will fix it ASAP. |
espressif-bot
added
Status: In Progress
Work is in progress
and removed
Status: Opened
Issue is new
labels
Sep 22, 2021
Any status on this? The only patch required to fix it is: --- a/components/esp_hid/src/esp_hidh.c
+++ b/components/esp_hid/src/esp_hidh.c
@@ -639,7 +639,7 @@ esp_hidh_dev_report_t *esp_hidh_dev_get_input_report_by_proto_and_data(esp_hidh_
}
r = dev->reports;
while (r) {
- if (r->value_len == len + 1 && r->report_id == *data && (r->report_type & 1) &&
+ if (r->value_len == len - 1 && r->report_id == *data && (r->report_type & 1) &&
r->protocol_mode == protocol_mode) {
*has_report_id = true;
break; If you'd like we can open a PR for it. |
We already have an MR for this and other tiny bugs of HID internal, but we have to have a throughout test but the test is not all pass. Please wait for our update. Thanks |
espressif-bot
added
Resolution: NA
Issue resolution is unavailable
Status: Done
Issue is done internally
Resolution: Done
Issue is done internally
and removed
Status: In Progress
Work is in progress
Resolution: NA
Issue resolution is unavailable
labels
Jan 7, 2022
espressif-bot
pushed a commit
that referenced
this issue
Jan 28, 2022
dskulina
pushed a commit
to playable-tech/esp-idf
that referenced
this issue
Feb 4, 2022
dskulina
pushed a commit
to playable-tech/esp-idf
that referenced
this issue
Feb 5, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Environment
git describe --tags
to find it):// ESP-IDF v4.4-dev-3042-g220590d599-dirty
Problem Description
// r->value_len is the report map length and the "len" is the data length. the data should be report id + report data
// which r->value_len == len -1, not len +1
The fix should be:
The text was updated successfully, but these errors were encountered: