~ubuntu-branches/ubuntu/utopic/dropbear/utopic-proposed

« back to all changes in this revision

Viewing changes to libtommath/bn_mp_mul_d.c

  • Committer: Bazaar Package Importer
  • Author(s): Matt Johnston
  • Date: 2005-12-08 19:20:21 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051208192021-nyp9rwnt77nsg6ty
Tags: 0.47-1
* New upstream release.
* SECURITY: Fix incorrect buffer sizing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
    u       = (mp_digit) (r >> ((mp_word) DIGIT_BIT));
58
58
  }
59
59
 
60
 
  /* store final carry [if any] */
 
60
  /* store final carry [if any] and increment ix offset  */
61
61
  *tmpc++ = u;
 
62
  ++ix;
62
63
 
63
64
  /* now zero digits above the top */
64
65
  while (ix++ < olduse) {