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

Bug: out of bounds memory access #81

Open
ryan-skydio opened this issue Jan 3, 2022 · 0 comments
Open

Bug: out of bounds memory access #81

ryan-skydio opened this issue Jan 3, 2022 · 0 comments

Comments

@ryan-skydio
Copy link

In FindMaxCorr10() in matching.cu, if numPts2 < M7H, then this loop will not run:

for (int bp2=0;bp2<numPts2 - M7H + 1;bp2+=M7H) {

which means that indices will retain their initial value of -1, and then at the end of the function this access occurs:

sift1[bp1 + tx].match_xpos = sift2[index].xpos;

with index==-1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant