Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The memory stream interface allows for a buffer size of zero.
The case of a zero-sized buffer was not handled correctly, as it could lead to a double free. This problem has now been fixed (hopefully). One might ask whether a zero-sized buffer should be allowed at all, but this is a question for another day.
- Loading branch information