libavcodec/ac3enc.c:252: error: Buffer Overrun L2
  Offset: [0, 255] Size: 6 by call to `calc_exp_diff`.

libavcodec/ac3enc.c:241:1: Parameter `(*exp)[*]`
239. }
240. 
241. static void compute_exp_strategy(uint8_t exp_strategy[NB_BLOCKS][AC3_MAX_CHANNELS],
     ^
242.                                  uint8_t exp[NB_BLOCKS][AC3_MAX_CHANNELS][N/2],
243.                                  int ch, int is_lfe)

libavcodec/ac3enc.c:252:20: Call
250.     exp_strategy[0][ch] = EXP_NEW;
251.     for(i=1;i<NB_BLOCKS;i++) {
252.         exp_diff = calc_exp_diff(exp[i][ch], exp[i-1][ch], N/2);
                        ^
253.         dprintf(NULL, "exp_diff=%d\n", exp_diff);
254.         if (exp_diff > EXP_DIFF_THRESHOLD)

libavcodec/ac3enc.c:231:1: <Offset trace>
229. 
230. /* XXX: use another norm ? */
231. static int calc_exp_diff(uint8_t *exp1, uint8_t *exp2, int n)
     ^
232. {
233.     int sum, i;

libavcodec/ac3enc.c:231:1: Parameter `n`
  229. 
  230. /* XXX: use another norm ? */
  231. static int calc_exp_diff(uint8_t *exp1, uint8_t *exp2, int n)
       ^
  232. {
  233.     int sum, i;

libavcodec/ac3enc.c:231:1: <Length trace>
229. 
230. /* XXX: use another norm ? */
231. static int calc_exp_diff(uint8_t *exp1, uint8_t *exp2, int n)
     ^
232. {
233.     int sum, i;

libavcodec/ac3enc.c:231:1: Parameter `*exp1`
  229. 
  230. /* XXX: use another norm ? */
  231. static int calc_exp_diff(uint8_t *exp1, uint8_t *exp2, int n)
       ^
  232. {
  233.     int sum, i;

libavcodec/ac3enc.c:236:20: Array access: Offset: [0, 255] Size: 6 by call to `calc_exp_diff` 
  234.     sum = 0;
  235.     for(i=0;i<n;i++) {
  236.         sum += abs(exp1[i] - exp2[i]);
                          ^
  237.     }
  238.     return sum;
