Hmm, I think that's just some kind of buffer overrun.
With m_BufferSize being artificially increased it couldn't have been printing data that was in the array.
Placing a return; under that bit of code still printed the numbers, but I didn't get the segfault.
The problem is happening when it tries to parse data tag 7.. The fault is happening on the first bit of data in the new tag I put in. I'm looking into a fix now
Code:
for(unsigned int i = 0; i < m_BufferSize; i++) {//re
printf("%02i %02x %3i %c\n", i, (unsigned char)m_Buffer[i], (unsigned char)m_Buffer[i], m_Buffer[i] );//re
}
With m_BufferSize being artificially increased it couldn't have been printing data that was in the array.
Placing a return; under that bit of code still printed the numbers, but I didn't get the segfault.
The problem is happening when it tries to parse data tag 7.. The fault is happening on the first bit of data in the new tag I put in. I'm looking into a fix now