-
Notifications
You must be signed in to change notification settings - Fork 815
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
FPE on division by zero #3919
Comments
If I tested it here by creating an offer that contains a codec with zero clock rate, such as: So I wonder how you managed to trigger the issue. Please provide us the incoming SDP offer so we can check. |
Hey, I managed to reproduce the bug and can provide you with a pernosco session. It seems like there was no codec negotiated at all:
but I am not familiar enough with your code base to debug this further. |
Unfortunately, the session stops rather late at Alternatively, you can enable more detailed logging by calling |
You can spawn a |
Ah okay, I didn't know I have created PR #3927 to prevent the issue from happening. Note that most sample apps in If you want to do fuzzing, I would recommend to use pjsua sample app, or create your own fuzzing apps similar to the one that can be found in https://github.com/pjsip/pjproject/tree/master/tests/fuzz. |
Alright, thanks for the heads up! |
Describe the bug
In the following line
pjproject/pjsip-apps/src/samples/siprtp.c
Line 1267 in 08578e8
a SIGFPE might me raised because of
strm->clock_rate
being zero.Steps to reproduce
None
PJSIP version
2.14
Context
None
Log, call stack, etc
==3299801==ERROR: AddressSanitizer: FPE on unknown address 0x5555556f5e56 (pc 0x5555556f5e56 bp 0x7ffff49fcb90 sp 0x7ffff49fc000 T3) #0 0x5555556f5e56 in media_thread pjsip-apps/build/../src/samples/siprtp.c:1267
The text was updated successfully, but these errors were encountered: