Skip to content

Commit

Permalink
Turn accesses to 0-length vector elements to segfault also in Rf_ acc…
Browse files Browse the repository at this point in the history
…essors

with inlined DATAPTR().


git-svn-id: https://svn.r-project.org/R/trunk@87443 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information
kalibera committed Dec 17, 2024
1 parent d2a89d8 commit 8f420f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/include/Rinlinedfuns.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
#include <string.h> /* for strlen, strcmp */

/* define inline-able functions */
#if defined(TESTING_WRITE_BARRIER) || defined(COMPILING_R)
#if defined(TESTING_WRITE_BARRIER) || defined(COMPILING_R) || defined(COMPILING_MEMORY_C)
# define STRICT_TYPECHECK
# define CATCH_ZERO_LENGTH_ACCESS
#endif
Expand Down

0 comments on commit 8f420f0

Please sign in to comment.