Skip to content

going beyond the length of a vector - seg fault if length is 0 but not otherwise #157

@paciorek

Description

@paciorek

Trying to write into a vector beyond its length is protected against - it seems that the write simply doesn't happen.

However, if the length of the vector is 0, then there is a segfault. We might see if we can protect against this.

myfun <- nFunction(
    fun = function() {
        y = numeric(length=0)
        y[3] = 7
        return(y)
    }, returnType = 'numericVector')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions