[issue41344] SharedMemory crash when size is 0

Vinay Sharma report at bugs.python.org
Sat Jul 25 01:42:10 EDT 2020


Vinay Sharma <vinay0410sharma at gmail.com> added the comment:

Hi, The patch aims to raise a value error, because before the patch also, ValueError was being raised in case size was negative. That's why I thought it would be correct behaviour if I raise ValueError in case size is 0.

Do you mean to say, that OSError should be raise in the case size=0.
Also, I think handling of Windows was fine even before the patch, it was MacOS and Linux which were causing problems.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41344>
_______________________________________


More information about the Python-bugs-list mailing list