Commit b054be4
committed
vgetargskeywords:
+ Generally test nkeywords against 0 instead of keywords against NULL
(saves a little work if an empty keywords dict is passed, and is
conceptually more on-target regardless).
+ When a call erroneously specifies a keyword argument both by position
and by keyword name:
- It was easy to provoke this routine into an internal buffer overrun
by using a long argument name. Now uses PyErr_format instead (which
computes a safe buffer size).
- Improved the error msg.1 parent b0872fc commit b054be4
1 file changed
Lines changed: 9 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1085 | 1085 | | |
1086 | 1086 | | |
1087 | 1087 | | |
1088 | | - | |
| 1088 | + | |
1089 | 1089 | | |
1090 | 1090 | | |
1091 | 1091 | | |
1092 | 1092 | | |
1093 | 1093 | | |
1094 | | - | |
1095 | | - | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
1096 | 1097 | | |
1097 | | - | |
1098 | 1098 | | |
1099 | 1099 | | |
1100 | 1100 | | |
| |||
1155 | 1155 | | |
1156 | 1156 | | |
1157 | 1157 | | |
1158 | | - | |
1159 | | - | |
| 1158 | + | |
1160 | 1159 | | |
1161 | | - | |
| 1160 | + | |
1162 | 1161 | | |
1163 | 1162 | | |
1164 | | - | |
1165 | 1163 | | |
1166 | 1164 | | |
1167 | | - | |
1168 | | - | |
| 1165 | + | |
1169 | 1166 | | |
1170 | | - | |
1171 | | - | |
1172 | 1167 | | |
1173 | 1168 | | |
1174 | 1169 | | |
1175 | 1170 | | |
1176 | 1171 | | |
1177 | | - | |
| 1172 | + | |
1178 | 1173 | | |
1179 | 1174 | | |
1180 | | - | |
1181 | 1175 | | |
1182 | 1176 | | |
1183 | 1177 | | |
| |||
1202 | 1196 | | |
1203 | 1197 | | |
1204 | 1198 | | |
1205 | | - | |
| 1199 | + | |
1206 | 1200 | | |
1207 | | - | |
1208 | 1201 | | |
1209 | 1202 | | |
1210 | 1203 | | |
| |||
0 commit comments