Displaying 2 results from an estimated 2 matches for "r_memset".
Did you mean:
__memset
2025 Apr 23
1
R should add an API routine for safe use of memcpy(), memset() for use with 0-length SEXP
...e are a number of CRAN packages that fall victim to this, see e.g.
this PR and others linked to it [3]. I'm sure there are dozens if not
hundreds of other equivalent bugs waiting to be discovered that just
aren't covered by existing tests.
{rlang} took the approach to define r_memcpy() and r_memset() which
wrap memcpy() and memset(), resp., with an added length-0 check [4]; I
think R itself should offer these (probably more consistently styled
as R_Memcpy() and R_Memset()).
(NB there's a possibility I'm still not fully grasping what's going on here :) )
Mike C
[1] related: http...
2025 Apr 23
1
R should add an API routine for safe use of memcpy(), memset() for use with 0-length SEXP
...this PR and others linked to it [3]. I'm sure there are dozens if not
>>>> hundreds of other equivalent bugs waiting to be discovered that just
>>>> aren't covered by existing tests.
>>>>
>>>> {rlang} took the approach to define r_memcpy() and r_memset() which
>>>> wrap memcpy() and memset(), resp., with an added length-0 check [4]; I
>>>> think R itself should offer these (probably more consistently styled
>>>> as R_Memcpy() and R_Memset()).
>>>>
>>>> (NB there's a possibility I'...