Skip to content

Commit 92fd7dc

Browse files
committed
Fix EXE/DLL cert verification
RSA certificate verification is failing because we accidentally lowered the max size of numbers for floating point multiplication with TomsFastMath when upgrading the vendored library code. This commit restores the default from 4096 to 8192.
1 parent 778a4b1 commit 92fd7dc

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • libclamav/tomsfastmath/headers

libclamav/tomsfastmath/headers/tfm.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,10 @@
102102
* You can externally define this or it defaults to 4096-bits [allowing multiplications upto 2048x2048 bits ]
103103
*/
104104
#ifndef FP_MAX_SIZE
105-
#define FP_MAX_SIZE (4096+(8*DIGIT_BIT))
105+
// Increase max size of TomsFastMath's numbers from 4096-bits to 8192-bits.
106+
// 8192-bits was the previous maximum size, but was reduced to 4096 bits (the default) accidentally when the library was updated.
107+
// The higher size is required for RSA certificate verification.
108+
#define FP_MAX_SIZE (8192+(8*DIGIT_BIT))
106109
#endif
107110

108111
/* will this lib work? */

0 commit comments

Comments
 (0)