-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[bug]: ast_frame_adjust_volume and ast_frame_adjust_volume_float crash on interpolated frames #1230
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
Labels
Comments
The code handling the resulting frame should not assume audio is present in if samples is set. |
mkmer
added a commit
to mkmer/asterisk_core
that referenced
this issue
May 12, 2025
…ng volume Resolves: asterisk#1230
mkmer
added a commit
to mkmer/asterisk_core
that referenced
this issue
May 12, 2025
…ng volume Resolves: asterisk#1230
mkmer
added a commit
to mkmer/asterisk_core
that referenced
this issue
May 12, 2025
…ng volume Resolves: asterisk#1230
mkmer
added a commit
to mkmer/asterisk_core
that referenced
this issue
May 12, 2025
…ng volume Resolves: asterisk#1230
mkmer
added a commit
to mkmer/asterisk_core
that referenced
this issue
May 12, 2025
…ng volume Resolves: asterisk#1230
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Severity
Trivial
Versions
22.2.0
Components/Modules
audiohook
Operating Environment
Linux Hub01 6.1.0-34-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.135-1 (2025-04-25) x86_64 GNU/Linux
Frequency of Occurrence
Frequent
Issue Description
When this section of code generates a frame:
asterisk/main/translate.c
Lines 537 to 563 in 754dea3
we have a frame with
datalen == 0
anddata.ptr == NULL
.When said frame arrives at the audiohook to adjust volume, this code only looks at samples
asterisk/main/frame.c
Lines 812 to 832 in 754dea3
which has a NULL pointer in
f->data.ptr
-> often resulting in a segmentation fault inast_slinear_saturated_multiply_float()
I'm not sure which side of this is "wrong" - should we set samples != 0 when there is no data?
At a minimum, the
ast_frame_adjust_volume_float()
should verifyf->samples
is not reaching outside off->datalen
Relevant log output
Asterisk Issue Guidelines
The text was updated successfully, but these errors were encountered: