[Crosstoolchain-logs] [device-tree-compiler] 101/198: util: Fix out of bounds memory access
Hector Oron
zumbi at moszumanska.debian.org
Thu Dec 8 17:06:58 UTC 2016
This is an automated email from the git hooks/post-receive script.
zumbi pushed a commit to branch upstream/1.4.x
in repository device-tree-compiler.
commit 883238dc508e721db694277c5273a4c3e9a7132f
Author: Serge Lamikhov-Center <Serge.Lamikhov at gmail.com>
Date: Mon Sep 30 11:04:26 2013 +0300
util: Fix out of bounds memory access
The change also fixes numeric values output produced by fdtdump.
Signed-off-by: Serge Lamikhov-Center <Serge.Lamikhov at gmail.com>
---
util.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/util.c b/util.c
index 3055c16..e87d6c1 100644
--- a/util.c
+++ b/util.c
@@ -376,7 +376,7 @@ void utilfdt_print_data(const char *data, int len)
printf(" = <");
for (i = 0; i < len; i += 4)
- printf("0x%08x%s", fdt32_to_cpu(cell[i]),
+ printf("0x%08x%s", fdt32_to_cpu(cell[i / 4]),
i < (len - 4) ? " " : "");
printf(">");
} else {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/crosstoolchain/device-tree-compiler.git
More information about the Crosstoolchain-logs
mailing list