projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
631e8af
)
Fix generated md5, it was wrong for some input lengths.
author
Michael Niedermayer
<michaelni@gmx.at>
Mon, 15 Sep 2008 22:10:28 +0000
(22:10 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Mon, 15 Sep 2008 22:10:28 +0000
(22:10 +0000)
Fix issue634.
Originally committed as revision 15335 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavutil/md5.c
patch
|
blob
|
history
diff --git
a/libavutil/md5.c
b/libavutil/md5.c
index ee39de1318342c00d14712624c2ac4a135803193..d7c4f300c314d41f9a70813f839ab36323dba360 100644
(file)
--- a/
libavutil/md5.c
+++ b/
libavutil/md5.c
@@
-144,7
+144,7
@@
void av_md5_final(AVMD5 *ctx, uint8_t *dst){
uint64_t finalcount= le2me_64(ctx->len<<3);
av_md5_update(ctx, "\200", 1);
- while((ctx->len & 63)
<
56)
+ while((ctx->len & 63)
!=
56)
av_md5_update(ctx, "", 1);
av_md5_update(ctx, (uint8_t*)&finalcount, 8);