AliSoftware / OHHTTPStubs

Stub your network requests easily! Test your apps with fake network data and custom response time, response code and headers!
MIT License
5.03k stars 601 forks source link

Static Analysis results ran from XCode 9.4.1 #290

Open mikelupo opened 5 years ago

mikelupo commented 5 years ago

Ran Static analysis on my project and saw some collateral information that I thought I'd pass on. I realize this is older code but probably still applies.

Memory error Group

New Issue Checklist

Environment

There is no ill issue seen with OHTTPStubs. This is just FYI in case you wish to investigate. I realize this is an older version. I can't update and try again.

AliSoftware commented 5 years ago

Thanks for the report! I'll try to look into it as soon as I have some free time :wink:

ZevEisenberg commented 4 years ago

+1 I just ran static analysis and saw the first one, OHTTPStubs.m:46. Defining a property of type NSMutableArray as copy won’t do what you expect, and could lead to a crash. It’s not right now, but only because no one is doing self.stubDescriptors = someMutableArray.