fix #64 ECC: segfault on invalid input
Karel Miko
3 years ago
1 changed file(s) with
1 addition(s)
and
1 deletion(s)
.
Raw diff
Collapse all
Expand all
+1
-1
CryptX.xs
less
more
318
318
sv_crv = curve;
319
319
}
320
320
}
321
else if (SvROK(curve)) {
321
else if (SvROK(curve) && SvTYPE(SvRV(curve)) == SVt_PVHV) {
322
322
/* hashref */
323
323
sv_crv = curve;
324
324
}