Skip to content

Fix for Itseez/opencv_contrib/issues/278 - core dump in the case of no match(...) results. #279

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

Merged
merged 2 commits into from
Jul 1, 2015

Conversation

buzziam
Copy link

@buzziam buzziam commented Jun 22, 2015

Modified reported poses by constraining to the number of poses found - thus avoiding core dump.

buzz-ptc added 2 commits June 22, 2015 15:45
Modified reported poses by constraining to the number of poses found.
@bmagyar
Copy link
Contributor

bmagyar commented Jun 23, 2015

Hi, thanks for the fix!

Just being pedantic:

  • You should exit with EXIT_FAILURE, 0 is for successful execution.
  • I have no problems with using exit, @vpisarev may have a different opinion on that.

@vpisarev
Copy link
Contributor

for a sample it's fine to use exit()

@buzziam
Copy link
Author

buzziam commented Jun 23, 2015

Your call folks - my opinion when looking at it was that exit was already being used in a different case and that its okay not too have found a match - in fact it may even be considered successful to have not found one. But if the underlying assumption is that a match will/must/should be found - then clearly no matches would be a failure. Let me know - I'll be happy either way.

@bmagyar
Copy link
Contributor

bmagyar commented Jun 23, 2015

You are right, I was being too pedantic.

+1
On 23 Jun 2015 16:34, "buzziam" [email protected] wrote:

Your call folks - my opinion when looking at it was that exit was already
being used in a different case and that its okay not too have found a match

  • in fact it may even be considered successful to have not found one. But
    if the underlying assumption is that a match will/must/should be found -
    then clearly no matches would be a failure. Let me know - I'll be happy
    either way.


Reply to this email directly or view it on GitHub
#279 (comment)
.

@vpisarev vpisarev self-assigned this Jul 1, 2015
vpisarev added a commit that referenced this pull request Jul 1, 2015
Fix for /issues/278 - core dump in the case of no match(...) results.
@vpisarev vpisarev merged commit 5ec764d into opencv:master Jul 1, 2015
allnes pushed a commit to allnes/opencv_contrib that referenced this pull request Jun 9, 2024
* OV 2.0 configuration API

* Fixed tests
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

Successfully merging this pull request may close these issues.

4 participants