Skip to content

Support for __match_args__ in dataclasses#3

Merged
brandtbucher merged 1 commit intobrandtbucher:patmafrom
viridia:feature/dataclasses-match-args
Jun 13, 2020
Merged

Support for __match_args__ in dataclasses#3
brandtbucher merged 1 commit intobrandtbucher:patmafrom
viridia:feature/dataclasses-match-args

Conversation

@viridia
Copy link

@viridia viridia commented Jun 13, 2020

No description provided.

Copy link
Owner

@brandtbucher brandtbucher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@brandtbucher brandtbucher merged commit 15e8824 into brandtbucher:patma Jun 13, 2020
brandtbucher pushed a commit that referenced this pull request Apr 15, 2022
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants