Commit ba0b3ad
[ruby/openssl] bn: avoid ossl_bn_new(NULL)
Currently, calling ossl_bn_new() with a NULL argument allocates a new
OpenSSL::BN instance representing 0. This behavior is confusing. Raise
an exception if this is attempted, instead.
ruby/openssl@6fa793d9971 parent 64e8368 commit ba0b3ad
2 files changed
+7
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
68 | 67 | | |
69 | 68 | | |
70 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
805 | 805 | | |
806 | 806 | | |
807 | 807 | | |
808 | | - | |
| 808 | + | |
809 | 809 | | |
810 | 810 | | |
811 | | - | |
812 | | - | |
| 811 | + | |
813 | 812 | | |
814 | 813 | | |
815 | 814 | | |
| |||
830 | 829 | | |
831 | 830 | | |
832 | 831 | | |
833 | | - | |
| 832 | + | |
834 | 833 | | |
835 | 834 | | |
836 | | - | |
837 | | - | |
| 835 | + | |
838 | 836 | | |
839 | 837 | | |
840 | 838 | | |
| |||
0 commit comments