Opened 6 years ago

#88 new defect

DYLD_FORCE_FLAT_NAMESPACE breaks copy mode fuzzing on OSX

Reported by: WD Owned by: Sam Hocevar
Priority: major Milestone:
Component: port: OS X Version: SVN
Keywords: Cc:
Product: zzuf

Description

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.

Attachments (1)

zzuf_copymodeosx.patch (575 bytes) - added by WD 6 years ago.
Patch

Download all attachments as: .zip

Change History (1)

Changed 6 years ago by WD

Attachment: zzuf_copymodeosx.patch added

Patch

Note: See TracTickets for help on using tickets.