Skip to content

Commit 8f420f0

Browse files
author
kalibera
committed
Turn accesses to 0-length vector elements to segfault also in Rf_ accessors
with inlined DATAPTR(). git-svn-id: https://svn.r-project.org/R/trunk@87443 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent d2a89d8 commit 8f420f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/include/Rinlinedfuns.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
#include <string.h> /* for strlen, strcmp */
8282

8383
/* define inline-able functions */
84-
#if defined(TESTING_WRITE_BARRIER) || defined(COMPILING_R)
84+
#if defined(TESTING_WRITE_BARRIER) || defined(COMPILING_R) || defined(COMPILING_MEMORY_C)
8585
# define STRICT_TYPECHECK
8686
# define CATCH_ZERO_LENGTH_ACCESS
8787
#endif

0 commit comments

Comments
 (0)