Menu

#9 Infinite loop in unarchiver

open-accepted
5
2011-08-23
2011-08-23
No

There is an infinite loop possible in
-(void)readBytes:(void*)buffer count:(NSInteger)count;

It occurs when data being received in several chunks, so if-else goes to "Waiting 20ms for data" and then previously stored "read bytes count" becomes rewritten.

Please, check attached patch.

Discussion

  • Vadim Yeshkunov

    Vadim Yeshkunov - 2011-08-23

    Infinite loop fix patch

     
  • Fredrik Olsson

    Fredrik Olsson - 2011-08-23

    Accepted and will be applied to next update.

     
  • Fredrik Olsson

    Fredrik Olsson - 2011-08-23
    • status: open --> open-accepted
     

Log in to post a comment.