Opened 3 years ago

Closed 2 years ago

#9265 closed defect (fixed)

libavcodec/opus_silk.c:237: wrong size buffer ?

Reported by: dcb Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

libavcodec/opus_silk.c:237:5: warning: ‘silk_lsp2poly’ accessing 64 bytes in a region of size 36 [-Wstringop-overflow=]
libavcodec/opus_silk.c:238:5: warning: ‘silk_lsp2poly’ accessing 64 bytes in a region of size 36 [-Wstringop-overflow=]

Source code is

silk_lsp2poly(lsp , p, order >> 1);
silk_lsp2poly(lsp + 1, q, order >> 1);

and

static void silk_lsp2poly(const int32_t lsp[16], int32_t pol[16], int half_order)

but

int32_t p[9], q[9]; Q16

So p and q are the wrong size to fit silk_lsp2poly.

Change History (1)

comment:1 by mkver, 2 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.