From: Sascha Hauer <s.hauer@pengutronix.de>
To: barebox@lists.infradead.org, Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: Re: [PATCH] usb: Use well-known descriptor sizes when parsing configuration
Date: Tue, 02 Jul 2024 08:39:25 +0200 [thread overview]
Message-ID: <171990236545.3654797.17421860387211922611.b4-ty@pengutronix.de> (raw)
In-Reply-To: <20240701135030.543204-1-a.fatoum@pengutronix.de>
On Mon, 01 Jul 2024 15:50:30 +0200, Ahmad Fatoum wrote:
> This is a port of U-Boot commit eaf3e613ea6f0dc95c94a93997ad62785fe2969c:
>
> | Author: Julius Werner <jwerner@chromium.org>
> | Date: Fri Jul 19 13:12:08 2013 -0700
> |
> | usb: Use well-known descriptor sizes when parsing configuration
> |
> | The existing USB configuration parsing code relies on the descriptors'
> | own length values when reading through the configuration blob. Since the
> | size of those descriptors is always well-defined, we should rather use
> | the known sizes instead of trusting device-provided values to be
> | correct. Also adds some safety to potential out-of-order descriptors.
> |
> | Change-Id: I16f69dfdd6793aa0fe930b5148d4521f3e5c3090
> | Signed-off-by: Julius Werner <jwerner@chromium.org>
>
> [...]
Applied, thanks!
[1/1] usb: Use well-known descriptor sizes when parsing configuration
https://git.pengutronix.de/cgit/barebox/commit/?id=b6a510525e63 (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer@pengutronix.de>
prev parent reply other threads:[~2024-07-02 6:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-01 13:50 Ahmad Fatoum
2024-07-02 6:39 ` Sascha Hauer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=171990236545.3654797.17421860387211922611.b4-ty@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox