LittleEngineer / android-notifier

Automatically exported from code.google.com/p/android-notifier
0 stars 0 forks source link

codedInputStream endless loop #350

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
hello there is a serious bug in the following method you find the fix at the 
@fix tag.

in class codedInputStream.m

- (BOOL) refillBuffer:(BOOL) mustSucceed {

...

  // @fix(bbrodersen) here ist is important to check if {@code input} has available bytes, otherwise the program will if you call {input read ...] stuck in a loop (dont know what loop)
  if (input != nil && [input hasBytesAvailable]) {
    bufferSize = [input read:buffer.mutableBytes maxLength:buffer.length];
  }

...
}

so long
bengt

Original issue reported on code.google.com by Bengt.Br...@gmail.com on 26 Jan 2011 at 5:38