summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorNomis101 <[email protected]>2019-04-22 20:31:28 +0200
committerBradley Sepos <[email protected]>2019-06-19 14:10:45 -0400
commit5351c1f6194f8e12d30bc693c0dfe75c87b21410 (patch)
tree05059aa6dd57493a28a24e9afb85a90d9b262743 /macosx
parent79ea65ee6d16d93bf1c536fedfb49b0d29a25fc3 (diff)
build: Add --enable-hardening flag to enable stack protection and enhanced buffer overflow protection.
Prints the hardening status on global init to the log. Closes #2027. Was #2040.
Diffstat (limited to 'macosx')
-rw-r--r--macosx/HBOutputPanelController.m6
1 files changed, 6 insertions, 0 deletions
diff --git a/macosx/HBOutputPanelController.m b/macosx/HBOutputPanelController.m
index 5da8ebaf9..83b5b2268 100644
--- a/macosx/HBOutputPanelController.m
+++ b/macosx/HBOutputPanelController.m
@@ -9,6 +9,7 @@
#import "HBOutputRedirect.h"
#import "HBOutputFileWriter.h"
#import "HBUtilities.h"
+#import "project.h"
/// Maximum amount of characters that can be shown in the view.
#define TextStorageUpperSizeLimit 125000
@@ -77,6 +78,11 @@
NSDictionary *infoDict = [[NSBundle mainBundle] infoDictionary];
NSString *versionStringFull = [NSString stringWithFormat:@"Handbrake Version: %@ (%@)", infoDict[@"CFBundleShortVersionString"], infoDict[@"CFBundleVersion"]];
[HBUtilities writeToActivityLog: "%s", versionStringFull.UTF8String];
+
+ // Lets also report the hardening status to the activity log, if enabled
+#if HB_PROJECT_HOST_HARDEN == 1
+ [HBUtilities writeToActivityLog:"Compile-time hardening features are enabled"];
+#endif
}
return self;
}