Exploit databaseDownload repository ZIP
GH-1917e82ea4e17d91152ad921475048a4
automateforceai/cve-2018-0202
Sources for CVE-2018-0202
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files21
automateforceai/cve-2018-0202Revision 9964c381baf5
- ↑..Parent directory
- fp_mul.c
- fp_mul_2.c
- fp_mul_2d.c
- fp_mul_comba.c
- fp_mul_comba_12.c
- fp_mul_comba_17.c
- fp_mul_comba_20.c
- fp_mul_comba_24.c
- fp_mul_comba_28.c
- fp_mul_comba_3.c
- fp_mul_comba_32.c
- fp_mul_comba_4.c
- fp_mul_comba_48.c
- fp_mul_comba_6.c
- fp_mul_comba_64.c
- fp_mul_comba_7.c
- fp_mul_comba_8.c
- fp_mul_comba_9.c
- fp_mul_comba_small_set.c
- fp_mul_d.c
- fp_mulmod.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
clamav-0.99.3/libclamav/tomsfastmath/mul/fp_mul_2d.c
C · 1,044 bytes/* TomsFastMath, a fast ISO C bignum library.
*
* This project is meant to fill in where LibTomMath
* falls short. That is speed ;-)
*
* This project is public domain and free for all purposes.
*
* Tom St Denis, [email protected]
*/
#include "bignum_fast.h"
/* c = a * 2**d */
void fp_mul_2d(fp_int *a, int b, fp_int *c)
{
fp_digit carry, carrytmp, shift;
int x;
/* copy it */
fp_copy(a, c);
/* handle whole digits */
if (b >= DIGIT_BIT) {
fp_lshd(c, b/DIGIT_BIT);
}
b %= DIGIT_BIT;
/* shift the digits */
if (b != 0) {
carry = 0;
shift = DIGIT_BIT - b;
for (x = 0; x < c->used; x++) {
carrytmp = c->dp[x] >> shift;
c->dp[x] = (c->dp[x] << b) + carry;
carry = carrytmp;
}
/* store last carry if room */
if (carry && x < FP_SIZE) {
c->dp[c->used++] = carry;
}
}
fp_clamp(c);
}
/* $Source: /cvs/libtom/tomsfastmath/src/mul/fp_mul_2d.c,v $ */
/* $Revision: 1.1 $ */
/* $Date: 2006/12/31 21:25:53 $ */