Details
-
Bug
-
Resolution: Fixed
-
Major
-
2.8.9
-
Security Level: Public
-
None
-
3
Description
A malformed hostname can cause the AbstractC4WebSocket constructor to throw and exception. This is eventually translated to a UnsupportedOperationException thrown by SocketFactory to C4Socket.open.
This is one of several ways that the latter method can receive an exception and it has no way at all to cope with any of them.
In particular, it will not tell Core that the open failed and will not, immediately dispose of the LiteCore peer object.
Any uncaught exception while core is attempting to open a connection to the remote will cause the app to crash. I think that a combination of Core timeout and a finalizer on the Java socket object keep this from being a serious problem for exceptions that are caught.
Attachments
Issue Links
- Clones
-
CBL-3055 Malformed hostname can cause a crash.
- Closed