google / eDistantObject

eDistantObject (eDO) - Remote invocation library for iOS
Apache License 2.0
176 stars 36 forks source link

Fix eDO ASAN issue captured by Xcode 10. #205

Closed mobile-devx-github-bot closed 4 years ago

mobile-devx-github-bot commented 4 years ago

Fix eDO ASAN issue captured by Xcode 10.

Cause: Through a unit test, EDOHostPort reads a uint32_t on a NSData of size 3. It is an error if passed-in data size is less than the header such that the read can overflow the buffer.

Fix: EDOHostPort performs NSData size validation before reading using struct.