This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/14090] md5_process_block() produces incorrect result with large block sizes
- From: "belyshev at depni dot sinp.msu.ru" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Sat, 19 May 2012 13:11:20 +0000
- Subject: [Bug libc/14090] md5_process_block() produces incorrect result with large block sizes
- Auto-submitted: auto-generated
- References: <bug-14090-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=14090
--- Comment #4 from Serge Belyshev <belyshev at depni dot sinp.msu.ru> 2012-05-19 13:11:20 UTC ---
(In reply to comment #3)
> In glibc I see only md5_process_block() hit by this bug. Serge, are there an
> other files in glibc?
In crypt/sha512.c:123:
#ifdef USE_TOTAL128
ctx->total128 += len;
#else
ctx->total[TOTAL128_low] += len;
if (ctx->total[TOTAL128_low] < len)
++ctx->total[TOTAL128_high];
#endif
But only in remotely hypothetical case of !USE_TOTAL128 and 128-bit size_t and
then only if someone actually calls sha512_process_block() with this huge
buffer.
(and then again, surely there is some other code needs to be fixed before 128
word size will work)
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.