Are you sure we shouldn't be zeroing the entire remaining buffer? And maybe we should put it after the loop, given there are multiple exits.
Vincent Povirk madewokherd@gmail.com wrote:
Are you sure we shouldn't be zeroing the entire remaining buffer? And maybe we should put it after the loop, given there are multiple exits.
I have the tests only for case of fetching one element at end of enum, that's why the patch fixes only this. If there is a theory that zeroing should be done for the remaining cells as well, that should be a separate change with new tests.