Menu

#3 DecodeFactory Infinite Loop

1.0
open
nobody
None
2014-12-19
2014-12-19
Karl Jones
No

Its possible to get caught in an infinite loop in the DecodeFactory::Decode function when readings invalid data. If the header.length value is 0 then the loop will never end.

One possible solution is to validate the length value in the Header::Decode function.

Discussion


Log in to post a comment.