Skip to content

fix: Fix Floating Point Exception in OMEMO session building#2096

Merged
jubalh merged 1 commit intomasterfrom
fix/1997-floatingpoint
Feb 28, 2026
Merged

fix: Fix Floating Point Exception in OMEMO session building#2096
jubalh merged 1 commit intomasterfrom
fix/1997-floatingpoint

Conversation

@jubalh
Copy link
Copy Markdown
Member

@jubalh jubalh commented Feb 28, 2026

When an OMEMO bundle is received with an empty element, prekeys_list remains empty. In omemo_start_device_session(), performing a modulo operation on the length of an empty list (0) triggered a SIGFPE (Floating point exception).

torsocks likely affected the network environment where such empty or incomplete bundles could be intercepted.

Fix #1997

When an OMEMO bundle is received with an empty <prekeys/> element,
`prekeys_list` remains empty. In omemo_start_device_session(),
performing a modulo operation on the length of an empty list
(0) triggered a SIGFPE (Floating point exception).

torsocks likely affected the network environment where such empty
or incomplete bundles could be intercepted.

Fix #1997
@jubalh jubalh mentioned this pull request Feb 28, 2026
@jubalh jubalh self-assigned this Feb 28, 2026
@jubalh jubalh added this to the next milestone Feb 28, 2026
@jubalh jubalh merged commit e18b715 into master Feb 28, 2026
7 checks passed
@jubalh jubalh deleted the fix/1997-floatingpoint branch February 28, 2026 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Floating point exception

1 participant