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

Par framework should clamp its internal array #15

Open
lars-t-hansen opened this issue Jan 23, 2015 · 0 comments
Open

Par framework should clamp its internal array #15

lars-t-hansen opened this issue Jan 23, 2015 · 0 comments

Comments

@lars-t-hansen
Copy link
Owner

The Par framework is initialized with an int32 array and a base address within that int32 array that it can use for its metadata. It then computes offsets from that base address to use for its internal variables. It would be better if it were to create a new array from the underlying buffer starting at that base address, and clamped to MasterPar.NUMINTS in length. Its variable offsets would then always start at 0, and we'd get range checking on both the master and the workers.

lars-t-hansen pushed a commit that referenced this issue Jan 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant