mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 06:45:43 +02:00
Bug 314275 fixed array out of bound exception
This commit is contained in:
parent
646182c984
commit
27808358a3
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ class SpawnerInputStream extends InputStream {
|
|||
} else if (len == 0) {
|
||||
return 0;
|
||||
}
|
||||
byte[] tmpBuf = off > 0 ? new byte[len - off] : buf;
|
||||
byte[] tmpBuf = off > 0 ? new byte[len] : buf;
|
||||
|
||||
len = read0(fd, tmpBuf, len);
|
||||
if (len <= 0)
|
||||
|
|
Loading…
Add table
Reference in a new issue