1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 18:27:36 +00:00

LibCrypto: Parse negative input correctly in BigFraction::from_string()

Previously, when calling `BigFraction::from_string()`, the fractional
part of the number was always treated as positive. This led to an
incorrect result if the input string was negative.
This commit is contained in:
Tim Ledbetter 2024-01-14 06:14:56 +00:00 committed by Jelle Raaijmakers
parent e0fd5beb36
commit d545fb2b60
3 changed files with 32 additions and 0 deletions

View file

@ -1,6 +1,7 @@
set(TEST_SOURCES
TestAES.cpp
TestASN1.cpp
TestBigFraction.cpp
TestBigInteger.cpp
TestChecksum.cpp
TestChaCha20.cpp