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

« back to all changes in this revision

Viewing changes to libtommath/bn_mp_mod_2d.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:
28
28
  }
29
29
 
30
30
  /* if the modulus is larger than the value than return */
31
 
  if (b > (int) (a->used * DIGIT_BIT)) {
 
31
  if (b >= (int) (a->used * DIGIT_BIT)) {
32
32
    res = mp_copy (a, c);
33
33
    return res;
34
34
  }