- Notifications
You must be signed in to change notification settings - Fork4.9k
Commite4b0858
committed
Catch null pointer returns from PyCObject_AsVoidPtr and PyCObject_FromVoidPtr
This is reproducibly possible in Python 2.7 if the user turnedPendingDeprecationWarning into an error, but it's theoretically also possiblein earlier versions in case of exceptional conditions.backpatched to 8.01 parente8b4a23 commite4b0858
1 file changed
+6
-1
lines changedLines changed: 6 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
32 |
| - | |
| 32 | + | |
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
| |||
966 | 966 |
| |
967 | 967 |
| |
968 | 968 |
| |
| 969 | + | |
| 970 | + | |
969 | 971 |
| |
970 | 972 |
| |
971 | 973 |
| |
| |||
1135 | 1137 |
| |
1136 | 1138 |
| |
1137 | 1139 |
| |
| 1140 | + | |
1138 | 1141 |
| |
1139 | 1142 |
| |
| 1143 | + | |
| 1144 | + | |
1140 | 1145 |
| |
1141 | 1146 |
| |
1142 | 1147 |
| |
|
0 commit comments
Comments
(0)