Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Garbage data input for primitives #65

Open
sloorush opened this issue Apr 18, 2024 · 0 comments
Open

Garbage data input for primitives #65

sloorush opened this issue Apr 18, 2024 · 0 comments
Labels
enhancement Enhancements to the project good first issue Good for newcomers Size: M Medium sized task

Comments

@sloorush
Copy link
Member

sloorush commented Apr 18, 2024

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.

@sloorush sloorush added enhancement Enhancements to the project Size: M Medium sized task labels Apr 18, 2024
@sloorush sloorush changed the title Garbage data tested for primitives Garbage data input for primitives Apr 18, 2024
@sloorush sloorush added the good first issue Good for newcomers label Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancements to the project good first issue Good for newcomers Size: M Medium sized task
Projects
None yet
Development

No branches or pull requests

1 participant