From: Miquel Raynal <miquel.raynal@bootlin.com>
To: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Cc: Tom Rini <trini@konsulko.com>, Simon Glass <sjg@chromium.org>,
Stefan Roese <sr@denx.de>,
Boris Brezillon <bbrezillon@kernel.org>,
u-boot@lists.denx.de
Subject: Re: [PATCH 1/1] cmd: mtd: avoid unintentional integer overflow
Date: Thu, 11 Jan 2024 08:48:55 +0100 [thread overview]
Message-ID: <20240111084837.2c7b46c4@xps-13> (raw)
In-Reply-To: <20240111073155.19545-1-heinrich.schuchardt@canonical.com>
Hi Heinrich,
heinrich.schuchardt@canonical.com wrote on Thu, 11 Jan 2024 08:31:55
+0100:
> mtd dump beyond 4 GiB will show incorrect results.
>
> Multiplying two u32 will yield a u32. Add a missing cast.
Good point, thanks for the fix.
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Thanks,
Miquèl
prev parent reply other threads:[~2024-01-11 7:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-11 7:31 [PATCH 1/1] cmd: mtd: avoid unintentional integer overflow Heinrich Schuchardt
2024-01-11 7:48 ` Miquel Raynal [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=20240111084837.2c7b46c4@xps-13 \
--to=miquel.raynal@bootlin.com \
--cc=bbrezillon@kernel.org \
--cc=heinrich.schuchardt@canonical.com \
--cc=sjg@chromium.org \
--cc=sr@denx.de \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
/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