-
Fred Wright authored
This adds our allocating wrapper to the 10.6 non-POSIX case, which returns an unsafe buffer pointer when supplied with a nonexistent path and no buffer. Providing our own malloc()ed buffer avoids the problem. This only affects 32-bit builds, since 64-bit non-POSIX is nonexistent. The original flag is renamed in the process, with the original name now reflecting the combined need for the wrapper. Some whitespace cleanup is also applied to the other composite flag definitions. Updates README to reflect the fix. TESTED: Tests pass on all platforms, including newly added test case (next commit).
46a30685Fred Wright authoredThis adds our allocating wrapper to the 10.6 non-POSIX case, which returns an unsafe buffer pointer when supplied with a nonexistent path and no buffer. Providing our own malloc()ed buffer avoids the problem. This only affects 32-bit builds, since 64-bit non-POSIX is nonexistent. The original flag is renamed in the process, with the original name now reflecting the combined need for the wrapper. Some whitespace cleanup is also applied to the other composite flag definitions. Updates README to reflect the fix. TESTED: Tests pass on all platforms, including newly added test case (next commit).
Loading