Here is a sample of decoding corrupted RLE:
from pycocotools import mask # pycocotools version is 2.0.2
mask.decode({'size': [1024, 1024], 'counts': "OeSOk0[l0VOaSOn0kh0cNmYO'"})
As result it fails with Segmentation fault (core dumped)
It looks like this:
Python 3.6.15 (default)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>> from pycocotools import mask
>>> mask.decode({'size': [1024, 1024], 'counts': "OeSOk0[l0VOaSOn0kh0cNmYO'"})
Segmentation fault (core dumped)
Questions:
signal.SIGSEGV
and continue executing of code?This issue is solved by updating pycocotools to version 2.0.5