All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Glass <sjg@chromium.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 8/8] sandbox: swap_case: Increase number of base address regs
Date: Sat,  9 Jun 2018 12:22:34 -0600	[thread overview]
Message-ID: <20180609182235.33532-9-sjg@chromium.org> (raw)
In-Reply-To: <20180609182235.33532-1-sjg@chromium.org>

At present the code overruns the bar[] array. Fix this.

Reported-by: Coverity (CID: 131199)

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 drivers/misc/swap_case.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/misc/swap_case.c b/drivers/misc/swap_case.c
index 56cd0700fa..b777404c09 100644
--- a/drivers/misc/swap_case.c
+++ b/drivers/misc/swap_case.c
@@ -21,7 +21,7 @@
  */
 struct swap_case_platdata {
 	u16 command;
-	u32 bar[2];
+	u32 bar[6];
 };
 
 #define offset_to_barnum(offset)	\
-- 
2.18.0.rc1.242.g61856ae69a-goog

  parent reply	other threads:[~2018-06-09 18:22 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-09 18:22 [U-Boot] [PATCH 0/8] Fix some coverity warnings Simon Glass
2018-06-09 18:22 ` [U-Boot] [PATCH 1/8] log: Fix incorect range check in log_get_cat_name() Simon Glass
2018-06-09 19:28   ` Heinrich Schuchardt
2018-06-09 18:22 ` [U-Boot] [PATCH 2/8] console: Fix handling of NULL global_data Simon Glass
2018-06-09 19:32   ` Heinrich Schuchardt
2018-06-09 18:22 ` [U-Boot] [PATCH 3/8] sandbox: Use memcpy() to move overlapping regions Simon Glass
2018-06-09 18:56   ` Heinrich Schuchardt
2018-06-10 11:35     ` Simon Glass
2018-06-09 18:22 ` [U-Boot] [PATCH 4/8] fdtgrep: Fix logic of free() in do_fdtgrep() Simon Glass
2018-06-09 19:44   ` Heinrich Schuchardt
2018-06-12  6:05     ` Simon Glass
2018-06-09 18:22 ` [U-Boot] [PATCH 5/8] fdtgrep: Separate out checking of two allocations Simon Glass
2018-06-09 19:46   ` Heinrich Schuchardt
2018-06-12  6:05     ` Simon Glass
2018-06-09 18:22 ` [U-Boot] [PATCH 6/8] rsa: Fix missing memory leak on error in fdt_add_bignum() Simon Glass
2018-06-09 19:50   ` Heinrich Schuchardt
2018-06-12  6:05     ` Simon Glass
2018-06-09 18:22 ` [U-Boot] [PATCH 7/8] spi: sandbox: Fix memory leak in sandbox_sf_bind_emul() Simon Glass
2018-06-09 19:54   ` Heinrich Schuchardt
2018-06-10 11:35     ` Simon Glass
2018-06-12  6:05       ` Simon Glass
2018-06-09 18:22 ` Simon Glass [this message]
2018-06-09 19:58   ` [U-Boot] [PATCH 8/8] sandbox: swap_case: Increase number of base address regs Heinrich Schuchardt

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=20180609182235.33532-9-sjg@chromium.org \
    --to=sjg@chromium.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.