erdemolkun / plist

Automatically exported from code.google.com/p/plist
0 stars 0 forks source link

Should not crash when parsing file < 8 bytes #49

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This causes a java.lang.StringIndexOutOfBoundsException. Patch is attached with 
unit test to fix it.

tiny.plist:
  {}
Code:
  PropertyListParser.parse(new File("tiny.plist"))

Original issue reported on code.google.com by matv...@gmail.com on 9 Sep 2014 at 6:45

GoogleCodeExporter commented 9 years ago
Actually attaching patch this time.

Original comment by matv...@gmail.com on 9 Sep 2014 at 6:47

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by daniel.dreibrodt on 22 Sep 2014 at 9:16

GoogleCodeExporter commented 9 years ago
Fixed in r111

Original comment by daniel.dreibrodt on 23 Sep 2014 at 6:22