You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Henri Yandell <fl...@gmail.com> on 2006/12/05 22:49:14 UTC

[io] EndianUtils bug

A colleague brought this one to my attention based on the FindBugs report:

EndianUtils.readSwappedLong calls input.read( bytes ) without checking
the return value. So I'm guessing there's a chance that less than 8
bytes might be read.

I'm tempted to solve it by just putting in a for( i=0->8 ) loop in and
call the read( input ) method. Does that sound okay?

Hen

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org