This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/14090] md5_process_block() produces incorrect result with large block sizes


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]