projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9cac525
)
Don't read off end of the input array.
author
Dale Johannesen
<dalej@apple.com>
Wed, 16 Apr 2008 17:31:41 +0000
(17:31 +0000)
committer
Dale Johannesen
<dalej@apple.com>
Wed, 16 Apr 2008 17:31:41 +0000
(17:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49799
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/AsmWriter.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/AsmWriter.cpp
b/lib/VMCore/AsmWriter.cpp
index a2de5d99a057512a45ddaca56d61f2d80c07ddef..2eb37db7e686eeb3ea2c662368a0f3d19e2cb947 100644
(file)
--- a/
lib/VMCore/AsmWriter.cpp
+++ b/
lib/VMCore/AsmWriter.cpp
@@
-527,7
+527,7
@@
static void WriteConstantInt(std::ostream &Out, const Constant *CV,
Out << (unsigned char)(nibble + '0');
else
Out << (unsigned char)(nibble - 10 + 'A');
- if (shiftcount == 0) {
+ if (shiftcount == 0
&& j+4 < width
) {
word = *(++p);
shiftcount = 64;
if (width-j-4 < 64)