Exploit databaseDownload repository ZIP
GH-e0045e39e79655e846aab23a84bf8ea8
abrarkhan/g3_frameworks_av_cve-2024-0023
Sources for CVE-2024-0023
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files48
abrarkhan/g3_frameworks_av_cve-2024-0023Revision 58f6f7229c15
- ↑..Parent directory
- asm/
- autocorr.c
- az_isp.c
- bits.c
- c2t64fx.c
- c4t64fx.c
- convolve.c
- cor_h_x.c
- decim54.c
- deemph.c
- dtx.c
- g_pitch.c
- gpclip.c
- homing.c
- hp400.c
- hp50.c
- hp6k.c
- hp_wsp.c
- int_lpc.c
- isp_az.c
- isp_isf.c
- lag_wind.c
- levinson.c
- log2.c
- lp_dec2.c
- math_op.c
- mem_align.c
- oper_32b.c
- p_med_ol.c
- pit_shrp.c
- pitch_f4.c
- pred_lt4.c
- preemph.c
- q_gain2.c
- q_pulse.c
- qisf_ns.c
- qpisf_2s.c
- random.c
- residu.c
- scale.c
- stream.c
- syn_filt.c
- updt_tar.c
- util.c
- voAMRWBEnc.c
- voicefac.c
- wb_vad.c
- weight_a.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
media/libstagefright/codecs/amrwbenc/src/preemph.c
C · 3,170 bytes/*
** Copyright 2003-2010, VisualOn, Inc.
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
*/
/***********************************************************************
* File: preemph.c *
* *
* Description: Preemphasis: filtering through 1 - g z^-1 *
* Preemph2 --> signal is multiplied by 2 *
* *
************************************************************************/
#include "typedef.h"
#include "basic_op.h"
void Preemph(
Word16 x[], /* (i/o) : input signal overwritten by the output */
Word16 mu, /* (i) Q15 : preemphasis coefficient */
Word16 lg, /* (i) : lenght of filtering */
Word16 * mem /* (i/o) : memory (x[-1]) */
)
{
Word16 temp;
Word32 i, L_tmp;
temp = x[lg - 1];
for (i = lg - 1; i > 0; i--)
{
L_tmp = L_deposit_h(x[i]);
L_tmp -= (x[i - 1] * mu)<<1;
x[i] = (L_tmp + 0x8000)>>16;
}
L_tmp = L_deposit_h(x[0]);
L_tmp -= ((*mem) * mu)<<1;
x[0] = (L_tmp + 0x8000)>>16;
*mem = temp;
return;
}
void Preemph2(
Word16 x[], /* (i/o) : input signal overwritten by the output */
Word16 mu, /* (i) Q15 : preemphasis coefficient */
Word16 lg, /* (i) : lenght of filtering */
Word16 * mem /* (i/o) : memory (x[-1]) */
)
{
Word16 temp;
Word32 i, L_tmp;
temp = x[lg - 1];
for (i = (Word16) (lg - 1); i > 0; i--)
{
L_tmp = L_deposit_h(x[i]);
L_tmp -= (x[i - 1] * mu)<<1; // only called with mu == 22282, so this won't overflow
if (L_tmp > INT32_MAX / 2) {
L_tmp = INT32_MAX / 2;
}
L_tmp = (L_tmp << 1);
if (L_tmp > INT32_MAX - 0x8000) {
L_tmp = INT32_MAX - 0x8000;
}
x[i] = (L_tmp + 0x8000)>>16;
}
L_tmp = L_deposit_h(x[0]);
L_tmp -= ((*mem) * mu)<<1;
if (L_tmp > INT32_MAX / 2) {
L_tmp = INT32_MAX / 2;
}
L_tmp = (L_tmp << 1);
if (L_tmp > INT32_MAX - 0x8000) {
L_tmp = INT32_MAX - 0x8000;
}
x[0] = (L_tmp + 0x8000)>>16;
*mem = temp;
return;
}