diff options
author | Michael Niedermayer | 2014-10-20 05:41:26 +0200 |
---|---|---|
committer | Michael Niedermayer | 2014-10-20 05:41:26 +0200 |
commit | b5583fc3e002b57441b37d60f8728fd9b09ddc47 (patch) | |
tree | 7333376663fe988716dae8d4a9c4333c898cf955 /libavutil/cast5.c | |
parent | 81ce3f8e8017886c272bc165104092adbabc2366 (diff) |
avutil/cast5: Fix off by one error
Fixes fate-cast5 on alpha
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/cast5.c')
-rw-r--r-- | libavutil/cast5.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/cast5.c b/libavutil/cast5.c index 2309223022..c0d6d1e2e6 100644 --- a/libavutil/cast5.c +++ b/libavutil/cast5.c @@ -457,7 +457,7 @@ av_cold int av_cast5_init(AVCAST5* cs, const uint8_t *key, int key_bits) q[i]=AV_RB32(newKey+(4*i)); generate_round_keys(cs->rounds,cs->Km,q,p); generate_round_keys(cs->rounds,cs->Kr,q,p); - for (i=0;i<cs->rounds;i++) + for (i=0;i<=cs->rounds;i++) cs->Kr[i]=cs->Kr[i]&0x1f; return 0; } |