Dyalog / Dyalog/ullu

Garbage data input for primitives

Open
#65 0 comments 0 reactions 0 assignees View on GitHub
enhancement good first issue Size: M
Dominant language
APL
Stars
5
Forks
4
PR merge metrics
No merged PRs in 30d

Description

Excerpt from @pmikkelsen's message:
A good idea is actually to pass something that isn't an array at all, and make sure we get the correct error. For example, 1+# should give an error. I have seen non-array arguments causing errors more than once.

In the interpreter, there are certain macros to check the rank of an array for example, and it is used like xxx->Rank. If some code is passed a namespace, the xxx->Rank will return garbage data, and likely cause a crash.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.