Re: [PATCH] hab: habv4: Don't reset index when checking for more events

2020-11-23 Thread Sascha Hauer
Hi Robin, On Fri, Nov 13, 2020 at 03:16:07PM +0100, Robin van der Gracht wrote: > If index is reset and the event record pointer is NULL the size of the > indexed event will be written to 'len'. > > Currently this results in always printing the buffer overflow error if > there is a HAB event.

[PATCH] hab: habv4: Don't reset index when checking for more events

2020-11-13 Thread Robin van der Gracht
If index is reset and the event record pointer is NULL the size of the indexed event will be written to 'len'. Currently this results in always printing the buffer overflow error if there is a HAB event. The index shouldn't be reset to get the size of the 'next' unhandled event. This can occur if