[Crosstoolchain-logs] [device-tree-compiler] 17/357: In flat tree reading, check for (negative) string offsets which underrun the input blob. (Patch from Michael Ellerman).
Hector Oron
zumbi at moszumanska.debian.org
Thu Dec 8 17:05:43 UTC 2016
This is an automated email from the git hooks/post-receive script.
zumbi pushed a commit to branch upstream/1.3.x
in repository device-tree-compiler.
commit 4ddf7c020c3db2f001987ec2c2a91a030a01377d
Author: David Gibson <dgibson at sneetch.(none)>
Date: Fri Aug 19 16:11:11 2005 +1000
In flat tree reading, check for (negative) string offsets which underrun
the input blob. (Patch from Michael Ellerman).
---
flattree.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/flattree.c b/flattree.c
index 7746227..901d1e2 100644
--- a/flattree.c
+++ b/flattree.c
@@ -547,7 +547,7 @@ static char *flat_read_stringtable(struct inbuf *inb, int offset)
p = inb->base + offset;
while (1) {
- if (p >= inb->limit)
+ if (p >= inb->limit || p < inb->base)
die("String offset %d overruns string table\n",
offset);
--
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