Skip to content

Commit

Permalink
Use the exception exfiltrator in the file provider too
Browse files Browse the repository at this point in the history
  • Loading branch information
tbodt committed May 20, 2023
1 parent 1a36205 commit 0b968c8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/FileProvider/FileProviderExtension.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#import "FileProviderEnumerator.h"
#import "NSError+ISHErrno.h"
#import "../AppGroup.h"
#import "../ExceptionExfiltrator.h"
#include "fs/fake-db.h"

@interface FileProviderExtension () {
Expand Down Expand Up @@ -441,6 +442,10 @@ - (void)stopProvidingItemAtURL:(NSURL *)url {
error:nil];
}

+ (void)load {
NSSetUncaughtExceptionHandler(iSHExceptionHandler);
}

@end

void die(const char *msg, ...) {
Expand Down
2 changes: 2 additions & 0 deletions iSH.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@
BBC3863F276817AD00CC8C2E /* CurrentRoot.m in Sources */ = {isa = PBXBuildFile; fileRef = BB565EA32734F1FB00C93EAE /* CurrentRoot.m */; };
BBD23D5F258DA450003DCB40 /* Screenshots.m in Sources */ = {isa = PBXBuildFile; fileRef = BBD23D5E258DA450003DCB40 /* Screenshots.m */; };
BBD23D77258DA4BC003DCB40 /* SnapshotHelper.swift in Sources */ = {isa = PBXBuildFile; fileRef = BBD23D76258DA4BC003DCB40 /* SnapshotHelper.swift */; };
BBE64AC22A198FCC00589372 /* ExceptionExfiltrator.m in Sources */ = {isa = PBXBuildFile; fileRef = 49FF844A2A06249F00850B7A /* ExceptionExfiltrator.m */; };
BBECF3AD269132F400DEC937 /* LinuxInterop.c in Sources */ = {isa = PBXBuildFile; fileRef = BBECF39D2691313B00DEC937 /* LinuxInterop.c */; };
BBECF3AE2691330F00DEC937 /* libiSHLinux.a in Frameworks */ = {isa = PBXBuildFile; fileRef = BBECF3A22691314C00DEC937 /* libiSHLinux.a */; };
BBECF3B9269136FB00DEC937 /* liblinux.a in Frameworks */ = {isa = PBXBuildFile; fileRef = BBECF3B8269136E100DEC937 /* liblinux.a */; };
Expand Down Expand Up @@ -2117,6 +2118,7 @@
BBBFE94921C5CFF100509DD5 /* NSError+ISHErrno.m in Sources */,
BB9C7B87240A2B1E00F5D4F0 /* AppGroup.m in Sources */,
BB88F4942154760800A341FD /* FileProviderExtension.m in Sources */,
BBE64AC22A198FCC00589372 /* ExceptionExfiltrator.m in Sources */,
BB88F4972154760800A341FD /* FileProviderItem.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down

0 comments on commit 0b968c8

Please sign in to comment.