I'm pretty sure the segfault happens when it tries to parse a tag and doesn't do it right. The seg fault happens when it tries to parse what it thinks is Tag: 63. (This was the same tag is segfaulted on when I first added the bytearray tag incorrectly)
The problem only seems to happen when the program loops through multiple chunks.
(Starts with chunk 0)
Chunk 3 and 4 both show unknown tag, and chunk 32 throws a segfault.
When I run those chunks separately it parses them without trouble. If I skip those chunks it will process the other chunks around them just fine.
I think there might be a problem with data carrying over between chunks in the parser (My guess is the compound tag since that's what the entity tag is). Am I supposed to clear the data with a function I'm not aware of? Is this just a bug with the parser?
The problem only seems to happen when the program loops through multiple chunks.
(Starts with chunk 0)
Chunk 3 and 4 both show unknown tag, and chunk 32 throws a segfault.
When I run those chunks separately it parses them without trouble. If I skip those chunks it will process the other chunks around them just fine.
I think there might be a problem with data carrying over between chunks in the parser (My guess is the compound tag since that's what the entity tag is). Am I supposed to clear the data with a function I'm not aware of? Is this just a bug with the parser?