You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Simplify _ssl.c by merging PyArg_Parse("es", "ascii") with AC-generated argument parser
While sorting out how SSLSocket differentiates between a peer closed a connection and a peer downgraded its connection to plaintext so unwrap() is required I found a couple of immediately involved methods with 1/3 of payload and 2/3 of dedicated hostname decoding.
This PR delegates the decoding to Argument Clinic.
The text was updated successfully, but these errors were encountered:
…python#91466)
Fix an uninitialized bool in exception print context.
`struct exception_print_context.need_close` was uninitialized.
Found by oss-fuzz in a test case running under the undefined behavior sanitizer.
https://oss-fuzz.com/testcase-detail/6217746058182656
```
Python/pythonrun.c:1241:28: runtime error: load of value 253, which is not a valid value for type 'bool'
#0 0xbf2203 in print_chained cpython3/Python/pythonrun.c:1241:28
#1 0xbea4bb in print_exception_cause_and_context cpython3/Python/pythonrun.c:1320:19
#2 0xbea4bb in print_exception_recursive cpython3/Python/pythonrun.c:1470:13
#3 0xbe9e39 in _PyErr_Display cpython3/Python/pythonrun.c:1517:9
```
Pretty obvious what the ommission was upon code inspection.
Simplify _ssl.c by merging
PyArg_Parse("es", "ascii")
with AC-generated argument parserWhile sorting out how SSLSocket differentiates between a peer closed a connection and a peer downgraded its connection to plaintext so unwrap() is required I found a couple of immediately involved methods with 1/3 of payload and 2/3 of dedicated hostname decoding.
This PR delegates the decoding to Argument Clinic.
The text was updated successfully, but these errors were encountered: