Skip to content

survive_disambiguator.c: handle_lightcap: early out with false when _le->length == 0 - #316

Merged
bl4ckb0ne merged 4 commits into
collabora:masterfrom
throni3git:fix/disambiguator-assert-lightelements-length-bigger-than-zero
Aug 10, 2026
Merged

survive_disambiguator.c: handle_lightcap: early out with false when _le->length == 0#316
bl4ckb0ne merged 4 commits into
collabora:masterfrom
throni3git:fix/disambiguator-assert-lightelements-length-bigger-than-zero

Conversation

@throni3git

Copy link
Copy Markdown

This broke my program flow sometimes. See #311

Comment thread src/survive_disambiguator.c Outdated

SurviveContext *ctx = so->ctx;

// "assert(_le->length > 0);" sometimes breaks the whole program, so instead just return success = false and go on

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment isnt relevant anymore, the assert has been removed.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that is true. i finally removed it :)

@bl4ckb0ne bl4ckb0ne left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@bl4ckb0ne
bl4ckb0ne merged commit e943d8b into collabora:master Aug 10, 2026
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants