This repository was archived by the owner on Apr 2, 2023. It is now read-only.
File tree 2 files changed +20
-3
lines changed
2 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,23 @@ func TestFuzzing(t *testing.T) {
90
90
"00000000000000000000" +
91
91
"00000000000000000000" +
92
92
"00000000000000000000" ,
93
+ // #24
94
+ "\xff \xfb 0x000000\xf9 000\x00 \x03 0000" +
95
+ "000000000000\xf7 0000000" +
96
+ "\x90 0000000000000000000" +
97
+ "00000000000000000000" +
98
+ "00000000000000000000" +
99
+ "00000000000000000000" +
100
+ "00000000000000000000" +
101
+ "00000000000000000000" +
102
+ "00000000000000000000" +
103
+ "00000000000000000000" +
104
+ "00000000000000000000" +
105
+ "00000000000000000000" +
106
+ "00000000000000000000" +
107
+ "00000000000000000000" +
108
+ "00000000000000000000" +
109
+ "0000000000000" ,
93
110
}
94
111
for _ , input := range inputs {
95
112
b := & bytesReadCloser {bytes .NewReader ([]byte (input ))}
Original file line number Diff line number Diff line change @@ -297,8 +297,8 @@ var (
297
297
func (f * Frame ) stereoProcessIntensityLong (gr int , sfb int ) {
298
298
is_ratio_l := float32 (0 )
299
299
is_ratio_r := float32 (0 )
300
- // Check that((is_pos[sfb]=scalefac) != 7) => no intensity stereo
301
- if is_pos := f .mainData .ScalefacL [gr ][0 ][sfb ]; is_pos != 7 {
300
+ // Check that((is_pos[sfb]=scalefac) < 7) => no intensity stereo
301
+ if is_pos := f .mainData .ScalefacL [gr ][0 ][sfb ]; is_pos < 7 {
302
302
sfreq := f .header .SamplingFrequency () // Setup sampling freq index
303
303
sfb_start := consts .SfBandIndicesSet [sfreq ].L [sfb ]
304
304
sfb_stop := consts .SfBandIndicesSet [sfreq ].L [sfb + 1 ]
@@ -325,7 +325,7 @@ func (f *Frame) stereoProcessIntensityShort(gr int, sfb int) {
325
325
win_len := consts .SfBandIndicesSet [sfreq ].S [sfb + 1 ] - consts .SfBandIndicesSet [sfreq ].S [sfb ]
326
326
// The three windows within the band has different scalefactors
327
327
for win := 0 ; win < 3 ; win ++ {
328
- // Check that((is_pos[sfb]=scalefac) != 7) => no intensity stereo
328
+ // Check that((is_pos[sfb]=scalefac) < 7) => no intensity stereo
329
329
is_pos := f .mainData .ScalefacS [gr ][0 ][sfb ][win ]
330
330
if is_pos < 7 {
331
331
sfb_start := consts .SfBandIndicesSet [sfreq ].S [sfb ]* 3 + win_len * win
You can’t perform that action at this time.
0 commit comments