commit | c39173be3237be9f39d2b57bb38249126e183c53 | [log] [tgz] |
---|---|---|
author | niko <niko@google.com> | Mon Jul 20 13:10:01 2009 -0700 |
committer | niko <niko@google.com> | Mon Jul 20 13:10:01 2009 -0700 |
tree | d154bd572a18c996385f0931b2128fceb7c226bc | |
parent | 0e9dd3b008536fe8a116eb6821ff84d34dba9f71 [diff] |
Fixed a bug in the parser. When we parse the metadata we check that there is enough data in the parcel by checking the byte availables and the size in the header. Since the size is in the header has been read, we should make sure than dataAvailable() >= size - 4 This bug was hidden by some test code which has been removed.