Esempio n. 1
0
/* This test will have buffer overflow for type long long */
void testEccAdd4() {
    printf("testEccAdd4 ");

    EllipticCurve ec1;
    ec1 = EllipticCurve(2879867477, 62293, 47905, 2879882063);
    Point R;

    Point tempQ(2023576232, 137974030);
    ecc_add(R, ec1, tempQ, tempQ);

    assert(R.x == 991038922);
    assert(R.y == 753333067);
}
Esempio n. 2
0
f00Quat& f00Quat::postMult( const f00Quat& quat )
{
	f00Quat tempQ( *this );
	multAndSet( tempQ, quat );
	return *this;
}