bug-rcs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

two patches


From: Steven Pelletier
Subject: two patches
Date: Wed, 11 Oct 2017 15:11:17 -0400

Below are two patch specific to Apple/macOS versions of rcs.

With the release of macOS High Sierra (10.13), Apple is enforcing that printf (and related) format strings that contain a %n specifier must be in write-protected memory.  This causes rcsdiff to take an illegal instruction trap shortly after startup.  Running rcsdiff without arguments will reproduce the issue.  The patch, rcs-apple_snprintf.patch, fixes that problem.  This fix is limited to a one line change to lib/vasnprintf.c  It is worth noting that old binaries will no longer function after the OS upgrade.



The second patch is for an old compile error where _Noreturn isn’t properly defined on Apple platforms.  rcs-apple_noreturn.patch, fixes that.  This fix is a one line change to lib/config.h.in



Attachment: rcs-apple_noreturn.patch
Description: Binary data

Attachment: rcs-apple_snprintf.patch
Description: Binary data





Steven Pelletier
SquareTurn Technology, Inc.
745 Atlantic Avenue, 8th Floor
Boston, MA 02111


reply via email to

[Prev in Thread] Current Thread [Next in Thread]