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

high risk of infinite loop #227

Open
FrancoisRegisDegott-eaton opened this issue Jun 27, 2021 · 2 comments
Open

high risk of infinite loop #227

FrancoisRegisDegott-eaton opened this issue Jun 27, 2021 · 2 comments

Comments

@FrancoisRegisDegott-eaton
Copy link
Contributor

aid = idParent;

don't assume that db data is coherent - must enforce code to avoid infinite loop

@etnKlendathu
Copy link
Contributor

selectrow throws a exception if not found.

@FrancoisRegisDegott-eaton
Copy link
Contributor Author

its not a question of selectThrow, its a question of value coming from db...

uint32_t idParent = row.get<uint32_t>("id_parent");

if idParent L1508 is the same as aid, we enter an infinite loop.

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