libavcodec/rv30.c:79: error: Buffer Overrun L2
  Offset: [-oo, 162] Size: 162.

libavcodec/rv30.c:76:17: <Offset trace>
74.                 return -1;
75.             }
76.             for(k = 0; k < 2; k++){
                    ^
77.                 int A = dst[-r->s.b4_stride] + 1;
78.                 int B = dst[-1] + 1;

libavcodec/rv30.c:76:17: Assignment
74.                 return -1;
75.             }
76.             for(k = 0; k < 2; k++){
                    ^
77.                 int A = dst[-r->s.b4_stride] + 1;
78.                 int B = dst[-1] + 1;

libavcodec/rv30data.h:42:1: <Length trace>
40.  * between the predicted and the real intra type.
41.  */
42. static const uint8_t rv30_itype_code[9*9*2] = {
    ^
43.     0, 0, 0, 1, 1, 0, 1, 1, 0, 2, 2, 0, 0, 3, 3, 0, 1, 2,
44.     2, 1, 0, 4, 4, 0, 3, 1, 1, 3, 0, 5, 5, 0, 2, 2, 1, 4,

libavcodec/rv30data.h:42:1: Array declaration
40.  * between the predicted and the real intra type.
41.  */
42. static const uint8_t rv30_itype_code[9*9*2] = {
    ^
43.     0, 0, 0, 1, 1, 0, 1, 1, 0, 2, 2, 0, 0, 3, 3, 0, 1, 2,
44.     2, 1, 0, 4, 4, 0, 3, 1, 1, 3, 0, 5, 5, 0, 2, 2, 1, 4,

libavcodec/rv30.c:79:67: Array access: Offset: [-oo, 162] Size: 162
77.                 int A = dst[-r->s.b4_stride] + 1;
78.                 int B = dst[-1] + 1;
79.                 *dst++ = rv30_itype_from_context[A * 90 + B * 9 + rv30_itype_code[code + k]];
                                                                      ^
80.                 if(dst[-1] == 9){
81.                     av_log(r->s.avctx, AV_LOG_ERROR, "Incorrect intra prediction mode\n");

static int rv30_decode_intra_types(RV34DecContext *r, GetBitContext *gb, int8_t *dst)
{
    int i, j, k;
    for(i = 0; i < 4; i++, dst += r->s.b4_stride - 4){
        for(j = 0; j < 4; j+= 2){
            int code = svq3_get_ue_golomb(gb) << 1;
            if(code >= 81*2){
                av_log(r->s.avctx, AV_LOG_ERROR, "Incorrect intra prediction code\n");
                return -1;
            }
            for(k = 0; k < 2; k++){
                int A = dst[-r->s.b4_stride] + 1;
                int B = dst[-1] + 1;
                *dst++ = rv30_itype_from_context[A * 90 + B * 9 + rv30_itype_code[code + k]];
                if(dst[-1] == 9){
                    av_log(r->s.avctx, AV_LOG_ERROR, "Incorrect intra prediction mode\n");
                    return -1;
                }
            }
        }
    }
    return 0;
}
['static int rv30_decode_intra_types(RV34DecContext *r, GetBitContext *gb, int8_t *dst)\n{\n    int i, j, k;\n    for(i = 0; i < 4; i++, dst += r->s.b4_stride - 4){\n        for(j = 0; j < 4; j+= 2){\n            int code = svq3_get_ue_golomb(gb) << 1;\n            if(code >= 81*2){\n                av_log(r->s.avctx, AV_LOG_ERROR, "Incorrect intra prediction code\\n");\n                return -1;\n            }\n            for(k = 0; k < 2; k++){\n                int A = dst[-r->s.b4_stride] + 1;\n                int B = dst[-1] + 1;\n                *dst++ = rv30_itype_from_context[A * 90 + B * 9 + rv30_itype_code[code + k]];\n                if(dst[-1] == 9){\n                    av_log(r->s.avctx, AV_LOG_ERROR, "Incorrect intra prediction mode\\n");\n                    return -1;\n                }\n            }\n        }\n    }\n    return 0;\n}']