Commit graph

25 commits

Author SHA1 Message Date
Akshay Ragir
ccdced7d6a Fix for Divide-by-zero in impd_drc_stft_drc_gain_calc_init
These changes handle the Divide-by-zero runtime error reported
when the drc gain coordinates are identical or slope is
perpendicular to the gain value.

Bug: ossFuzz:61683
Test: poc in bug
2023-09-09 20:32:12 +05:30
Akshay Ragir
f39922ae99 Fix for the Global-buffer-overflow READ 4 in iaace_quantize_lines
These changes handle the runtime error reported when the gain
value exceeds the maximum supported value because of zero
spectrum. This is resolved by exiting the rate distortion loop
when zero spectrum is detected. The issue is reported with AAC
and the same changes are extended to USAC.

Bug: ossFuzz:61699
Test: poc in bug
2023-09-09 20:32:12 +05:30
Akshay Ragir
62c8372f6b Fix for the Global-buffer-overflow READ 4 in iusace_estimate_scfs_chan
These changes handle the runtime error reported when the
value of scalefactor band form factor becomes zero. This
is resolved by adding bound checks for the gain value.
The issue is reported with USAC and the changes are
extended to AAC.

Bug: ossFuzz:61998
Test: poc in bug
2023-09-09 20:32:12 +05:30
Akshay Ragir
58acdb87a1 Fix for the Divide-by-zero in ixheaace_spectral_change
These changes handle the Divide-by-zero runtime error
reported when the energy value calculated is zero.
This is resolved by adding a non zero value to the
energy if it becomes zero.

Bug: ossFuzz: 61974
Test: poc in bug
2023-09-09 20:32:12 +05:30
Akshay Ragir
3428869827 Fix for the Null-dereference in ixheaace_extract_sbr_envelope
These changes handle the Null-dereference runtime error
reported for mono streams because of the inappropriate
access of uninitialized members from a structure.

Bug: ossFuzz: 61967
Test: poc in bug
2023-09-09 20:32:12 +05:30
Akshay Ragir
5ee1f8c848 Fix for the Divide-by-zero in ixheaace_sbr_missing_harmonics_detector_qmf
These chages handle the Divide-by-zero runtime error reported
when the value in tonal difference buffer becomes zero. This
is resolved by making it closer to zero instead of absolute
zero.

Bug: ossFuzz:61917
Test: poc in bug
2023-09-01 21:42:20 +05:30
Akshay Ragir
112fe0d0db Fix for the Global-buffer-overflow READ 4 in iusace_estimate_scfs_chan
These changes handle the Global-buffer-overflow runtime error
reported when the value of scalefactor band form factor
becomes zero. This is resolved by making it closer to zero
instead of absolute zero.

Bug: ossFuzz:61902
Test: poc in bug
2023-09-01 21:42:20 +05:30
Akshay Ragir
1ac90c8ac3 Fix for the Null-dereference in ixheaace_extract_sbr_envelope
These changes handle the Null-dereference runtime error
reported for mono streams because of inappropriate
access of uninitialized members from a structure.

Bug: ossFuzz:61903
Test: poc in bug
2023-09-01 21:42:20 +05:30
Akshay Ragir
a00a8d3c2c Fix for the Divide-by-zero in iusace_tcx_fac_encode
These changes handle the Divide-by-zero runtime error
reported by correcting the TCX pre-shaping and
shaping related parameters.

Bug: ossFuzz:61899
Test: poc in bug
2023-09-01 21:42:20 +05:30
Shreyas Talwekar
cd91e1af76 Fix for the Heap-buffer-overflow in ixheaace_process
This change handles the Heap-buffer-overflow by
considering the bits used by the SBR encoder for
USAC mono streams.

Bug: ossFuzz:61825
Test: poc in bug
2023-08-31 09:12:21 +05:30
Shreyas Talwekar
5285d1921d Fix for the Divide-by-zero in iusace_cplx_pred_proc
These changes handle the Divide-by-zero runtime
error when the residual energy becomes zero.
This is resolved by making the value of residual
energy closer to zero instead of absolute zero.

Bug: ossFuzz:61826
Test: poc in bug
2023-08-31 09:12:21 +05:30
Shreyas Talwekar
69a0983d7b Fix for the Null-dereference in ixheaace_extract_sbr_envelope
These changes handle the Null-dereference runtime error
reported because of the inappropriate usage of members
from an uninitialized structure when harmonic sbr is
disabled.

Bug: ossFuzz:61687
Test: poc in bug
2023-08-31 09:12:21 +05:30
Akshay Ragir
5b23cc288a Fix for the Divide-by-zero in ia_enhaacplus_enc_calc_weighted_spectrum
These changes handle the Divide-by-zero runtime error
when the value of scale factor band energy becomes
zero. This is resolved by making it closer to zero
instead of absolute zero.

Bug: ossFuzz:61709
Test: poc in bug
2023-08-31 09:12:21 +05:30
Akshay Ragir
5e7d72a065 Fix for the Divide-by-zero in iusace_fd_fac
These changes handle the Divide-by-zero runtime
error reported because of the inappropriate
usage of pstr_acelp->len_frame in Frequency
Domain coding.

Bug: ossFuzz:61669
Test: poc in bug
2023-08-31 09:12:21 +05:30
Akshay Ragir
e5650552a2 Fix for the Divide-by-zero in iaace_adjust_threshold
These changes handle the Divide-by-zero runtime
error if bit reservoir is not maintained. This
arises if the bit reservoir size value is set
to -1 using command line input.

Bug: ossFuzz:61711
Test: poc in bug
2023-08-31 09:12:21 +05:30
Nikhil Bhavikatti
1a62ab2e92
USAC Encoder enhancements (#45) 2023-08-21 10:54:50 +05:30
Nikhil Bhavikatti
79e7fec6db
Encoder updates (#42) 2023-08-07 11:59:48 +05:30
Nikhil Bhavikatti
d5a175920e
DRC API and testbench updates (#41) 2023-08-04 19:29:27 +05:30
Nikhil Bhavikatti
917448ce5d
Encoder Fuzzer updates (#40) 2023-08-02 13:25:35 +05:30
Nikhil Bhavikatti
eec1f1c336
Encoder enhancements for DRC (#39) 2023-07-28 17:53:06 +05:30
Nikhil Bhavikatti
af3f10a9be
Encoder enhancements for USAC along with DRC (#38) 2023-07-21 19:29:46 +05:30
Nikhil Bhavikatti
797de4d1e9
USAC along with DRC support for libxaac encoder (#37) 2023-07-14 13:04:15 +05:30
akshayragir833
e78e1c43c3
Code refactoring and minor fixes (#36)
Co-authored-by: Akshay Ragir <100833@ittiam.com>
2023-07-07 16:15:45 +05:30
bmdivya100655
b2e7201907
Encoder Enhancements (#34)
* Removed BUILD_ARM64 macro dependency
* Code refactoring
* Minor bug fixes

Co-authored-by: Divya B M <100655@ittiam.com>
2023-06-23 17:54:31 +05:30
bmdivya100655
088122e748
Combined Workspace for Encoder and Decoder (#33)
* Combined Workspace for Encoder and Decoder

* Addressed review comments and some minor edits

---------

Co-authored-by: Divya B M <100655@ittiam.com>
2023-05-22 20:11:52 +05:30