Comments (6)
Hi Dmitry,
was not able to repeat that error with a normal 64-bit pc.
Would you mind to give us a bit more information? What is your result, the version of libtommath, which OS on which architecture with which compiler?
Christoph Zurnieden
from libtommath.
Hi
Win10 x64, VS2015 SP3
my clone of libtommath (exact source code) - https://github.com/dmitry-lipetsk/libtommath-for-ibprovider--set01
based on - https://github.com/FirebirdSQL/firebird/tree/master/extern/libtommath
My result - "out of range" error. Valid range: [0...x.used)
In other case, as I understand, you can get the incorrect result of mp_div or AV.
Dmitry Kovalenko
from libtommath.
You do not only want support for a C++ port instead of the original C-code from https://github.com/libtom/libtommath, you also had ported LibTomMath code that was not original in the first place and it is not repeatable with the current version of LibTomMath.
Not a bug.
from libtommath.
:FACEPALM:
from libtommath.
Several different versions LibTomMath get used in several dozen different applications. Do you want us to support every one of those versions? It is quite normal in any development open to public comments that only the current version(s) get support.
So if you can repeat your problem in the current version and describe your method in such a way and form that others can repeat your test and find the described bug I will happily reopen this issue.
And recall over one hundred sensor packets where I used LibTomMath to implement rational math in a small MCU. So rest assured that will not take any errors in LibTomMath easily because wrong results will cost me much more than just the recall.
from libtommath.
It was incorrect offer :(
Access after end element - it is mp_div behavior "by design".
For avoid a read after last element ( x.dp[x.used] ) need use other solution.
from libtommath.
Related Issues (20)
- Build fails on Linux/Sparc with 32 bit userspace HOT 3
- CryptAcquireContextW and CryptGenRandom are deprecated HOT 3
- Potentially lossy conversion in s_read_wincsp HOT 1
- Dependency on dead code elimination HOT 4
- s_read_wincsp leaks handle HOT 2
- Is the memory representation stable? HOT 6
- mp_is_square says 0 is not a square HOT 3
- Library can not be used in android (arm64) HOT 24
- Next release with SPM support
- tommath_c89.h versus other solutions for backward compatibility with <C99 HOT 2
- should i>=x.used better? HOT 14
- does it support cross-build? HOT 1
- typos HOT 6
- s_mp_invmod_odd returns wrong result for negative numbers HOT 2
- speed please!? HOT 1
- Compiler & base OS versions
- mp_fwrite should not write \0 character HOT 3
- cmake HOT 2
- mp_exptmod incorrect result since version 0.32 HOT 3
- No more tommath.pdf ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libtommath.