Skip to content

Commit 512acc1

Browse files
committed
CocoaSpice: fixed a couple of edge condition UaFs
1 parent 81536ab commit 512acc1

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

Services/UTMSpiceIO.m

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,15 +202,13 @@ - (void)spiceInputUnavailable:(CSConnection *)connection input:(CSInput *)input
202202
}
203203

204204
- (void)spiceDisconnected:(CSConnection *)connection {
205-
NSAssert(connection == self.spiceConnection, @"Unknown connection");
206205
self.isConnected = NO;
207206
if ([self.delegate respondsToSelector:@selector(spiceDidDisconnect)]) {
208207
[self.delegate spiceDidDisconnect];
209208
}
210209
}
211210

212211
- (void)spiceError:(CSConnection *)connection code:(CSConnectionError)code message:(nullable NSString *)message {
213-
NSAssert(connection == self.spiceConnection, @"Unknown connection");
214212
self.isConnected = NO;
215213
#if defined(WITH_REMOTE)
216214
[self.connectDelegate remoteInterface:self didErrorWithMessage:message];

UTM.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)