OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
377723b
)
aes: fix array index out of bounds warning
author
Måns Rullgård
<mans@mansr.com>
Sun, 4 Jul 2010 20:38:46 +0000
(20:38 +0000)
committer
Måns Rullgård
<mans@mansr.com>
Sun, 4 Jul 2010 20:38:46 +0000
(20:38 +0000)
Originally committed as revision 24048 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavutil/aes.c
patch
|
blob
|
history
diff --git
a/libavutil/aes.c
b/libavutil/aes.c
index
66cf926
..
59f1cf3
100644
(file)
--- a/
libavutil/aes.c
+++ b/
libavutil/aes.c
@@
-141,7
+141,7
@@
int av_aes_init(AVAES *a, const uint8_t *key, int key_bits, int decrypt) {
uint8_t log8[256];
uint8_t alog8[512];
- if(!enc_multbl[
0][sizeof(enc_multbl)/sizeof(enc_multbl[0]
[0])-1]){
+ if(!enc_multbl[
FF_ARRAY_ELEMS(enc_multbl)-1][FF_ARRAY_ELEMS(enc_multbl
[0])-1]){
j=1;
for(i=0; i<255; i++){
alog8[i]=