Home My Page Projects GMP-ECM (Elliptic Curve Method)
Summary Activity Forums Tracker Lists Tasks Docs News SCM Files

[#20712] 7.0.3 segfault on aarch64

Date:
2016-08-24 03:08
Priority:
3
State:
Open
Submitted by:
Jerry James (jamesjer)
Assigned to:
Nobody (None)
Category:
none
Group:
none
Resolution:
Fixed
Summary:
7.0.3 segfault on aarch64

Detailed description
See https://bugzilla.redhat.com/show_bug.cgi?id=1367571 for more information. The 7.0.3 build is segfaulting on aarch64 machines while running the test suite. From information provided by valgrind, it appears that inside mpres_pow(), K = 4, and therefore 16 bytes are allocated for B, but then w becomes 10 inside the following loop, so the call to mpres_pow_mul passes B[w/2] == B[5], but only indices 0 through 3 are valid.
Message  ↓
Date: 2016-08-25 11:59
Sender: Paul Zimmermann

thank you for the bug report. I confirm mpres_pow() is buggy for negative E.
This should be fixed in revision 2979, please confirm.

Paul

Field Old Value Date By
ResolutionNone2016-08-25 11:59zimmerma