libavutil/rc4.c:36: error: Uninitialized Value
  The value read from state[_] was never initialized.

libavutil/rc4.c:36:9: 
34.     for (j = 0, i = 0; i < 256; i++, j++) {
35.         if (j == keylen) j = 0;
36.         y += state[i] + key[j];
            ^
37.         FFSWAP(uint8_t, state[i], state[y]);
38.     }

void ff_rc4_enc(const uint8_t *key, int keylen, uint8_t *data, int datalen) {
    int i, j;
    uint8_t x, y;
    uint8_t state[256];
    for (i = 0; i < 256; i++)
        state[i] = i;
    y = 0;
    for (j = 0, i = 0; i < 256; i++, j++) {
        if (j == keylen) j = 0;
        y += state[i] + key[j];
        FFSWAP(uint8_t, state[i], state[y]);
    }
    x = 1; y = state[1];
    while (datalen-- > 0) {
        uint8_t sum = state[x] + state[y];
        FFSWAP(uint8_t, state[x], state[y]);
        *data++ ^= state[sum];
        x++;
        y += state[x];
    }
}
['void ff_rc4_enc(const uint8_t *key, int keylen, uint8_t *data, int datalen) {\n    int i, j;\n    uint8_t x, y;\n    uint8_t state[256];\n    for (i = 0; i < 256; i++)\n        state[i] = i;\n    y = 0;\n    for (j = 0, i = 0; i < 256; i++, j++) {\n        if (j == keylen) j = 0;\n        y += state[i] + key[j];\n        FFSWAP(uint8_t, state[i], state[y]);\n    }\n    x = 1; y = state[1];\n    while (datalen-- > 0) {\n        uint8_t sum = state[x] + state[y];\n        FFSWAP(uint8_t, state[x], state[y]);\n        *data++ ^= state[sum];\n        x++;\n        y += state[x];\n    }\n}']