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

Index out of bound in clr_flg vector #3

Closed
lucaregini opened this issue Mar 2, 2015 · 2 comments
Closed

Index out of bound in clr_flg vector #3

lucaregini opened this issue Mar 2, 2015 · 2 comments
Assignees

Comments

@lucaregini
Copy link

The following line of code:

if ((clr_flg[lx - 1] == blob_count) || (clr_flg[lx + 1] == blob_count)) //Check for the continuity with previous scanned data

is executed with lx=0 and lx= size_of(clr_flg)-1 causing a runtime crash.

@bharathp666
Copy link
Owner

Seems like you referencing to 'Connected Components' program. I'll get back soon.

@bharathp666 bharathp666 self-assigned this Mar 3, 2015
@lucaregini
Copy link
Author

Yes I apologize, in fact I was referring to the openar project as I found the crash while debugging and compilying on visual studio. I made a small fix to the code so that it can compile on windows. You used an extensions that should be supported by gcc only. I am moving the issue to openAR and I will raise a pull request.

keyro90 added a commit to keyro90/opencv_qr that referenced this issue Sep 28, 2016
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

2 participants