Index: src/OFMethodSignature.m ================================================================== --- src/OFMethodSignature.m +++ src/OFMethodSignature.m @@ -47,10 +47,13 @@ (*type)++; (*length)--; } + if (count == 0) + @throw [OFInvalidFormatException exception]; + size = sizeofEncoding(type, length); if (*length == 0 || **type != ']') @throw [OFInvalidFormatException exception];