Skip to content

Add bounds check for length of passed indices and values #18

Closed
@tlnagy

Description

@tlnagy

This seems like a pretty massive bug unless I'm totally reading this wrong I was reading this wrong, but this check should still occur.

julia> c = IndirectArray([1,1,1,2,2,2], ["A", "A", "A", "B", "B", "B"])
6-element IndirectArray{String,1,Array{Int64,1},Array{String,1}}:
 "A"
 "A"
 "A"
 "A"
 "A"
 "A"

julia> versioninfo()
Julia Version 1.0.0
Commit 5d4eaca0c9 (2018-08-08 20:58 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: AMD Ryzen 7 2700X Eight-Core Processor
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.0 (ORCJIT, znver1)

IndirectArrays v0.5.0

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