[Crosstoolchain-logs] [device-tree-compiler] 23/357: Oops, use strtoul() instead of strtol() in dtc-lexer.l, so that we correctly handle cell values above 7fffffff. Bug pointed out by Kumar Gala.
Hector Oron
zumbi at moszumanska.debian.org
Thu Dec 8 17:05:44 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 c6d036eaeca727c9ec6490797cd08dad5a146d51
Author: David Gibson <dgibson at sneetch.(none)>
Date: Fri Oct 14 11:59:23 2005 +1000
Oops, use strtoul() instead of strtol() in dtc-lexer.l, so that we
correctly handle cell values above 7fffffff. Bug pointed out by Kumar Gala.
---
dtc-lexer.l | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dtc-lexer.l b/dtc-lexer.l
index cd3229f..438d7d2 100644
--- a/dtc-lexer.l
+++ b/dtc-lexer.l
@@ -82,7 +82,7 @@ REFCHAR ({PROPCHAR}|{UNITCHAR}|[/@])
fprintf(stderr,
"Cell value %s too long\n", yytext);
}
- yylval.cval = strtol(yytext, NULL, 16);
+ yylval.cval = strtoul(yytext, NULL, 16);
DPRINT("Cell: %x\n", yylval.cval);
return DT_CELL;
}
--
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