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

fix Issue 110 #112

Merged
merged 3 commits into from
May 8, 2024
Merged

fix Issue 110 #112

merged 3 commits into from
May 8, 2024

Conversation

bencrts
Copy link
Collaborator

@bencrts bencrts commented May 8, 2024

Issue 1.
As in #110, the crash was caused by some missing RR()s which have been added below. After this, the code outlined in the issue runs but segfaults. The segfault happens for both RC.BDGL16 and RC.MATZOV, but for different reasons.

Issue 2.
After fixing 1. Variants of short_vectors() are crashing for different cost models and causing a segfault, this happens when c in the below code is huge (e.g. >2**large). Basically, we are calling e.g. ceil(2**large) and it just crashes. To avoid this, I picked an arbitrary value and set c to oo in this case. The choice of the arbitrary value (2**1000) might need some discussion.

I also added a blankline to lwe_dual.py for readability.

@bencrts bencrts linked an issue May 8, 2024 that may be closed by this pull request
@bencrts bencrts requested a review from malb May 8, 2024 11:16
@bencrts
Copy link
Collaborator Author

bencrts commented May 8, 2024

Made a small update but I think it's OK now

@malb malb merged commit f18533a into main May 8, 2024
4 checks passed
@malb
Copy link
Owner

malb commented May 8, 2024

Looks good to me.

@bencrts bencrts deleted the issue-110 branch May 8, 2024 14:19
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.

dual crash
2 participants