Opened 6 years ago
DYLD_FORCE_FLAT_NAMESPACE breaks copy mode fuzzing on OSX
|Reported by:||wd||Owned by:||sam|
|Component:||port: OS X||Version:||SVN|
When zzuf runs on OSX, myfork.c executes the following line: setenv("DYLD_FORCE_FLAT_NAMESPACE", "1", 1);
This is presumably to allow zzuf to operate in LD_PRELOAD mode. However, this same pref that allows LD_PRELOAD to work also causes copy mode to break. Cocoa applications will hang when this environment variable is set.
Rather than setting that environment variable via "if defined APPLE", it should be set dynamically at runtime only if copy mode is not being used.