mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-14 15:39:06 +00:00
Don't read off end of the input array.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49799 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9cac5259fe
commit
48325f4b08
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user