Commit d486bb7
committed
shared/runtime/pyexec: Fix UBSan error in pyexec_stdin().
Use mp_lexer_new_from_fd() instead of mp_reader_new_file_from_fd() to
match the original execute_from_lexer() behavior. This avoids undefined
behavior detected by UBSan where bool close_fd contained non-bool values.
Signed-off-by: Andrew Leech <[email protected]>1 parent a4294c2 commit d486bb7
File tree
1 file changed
+2
-4
lines changed1 file changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
766 | 766 | | |
767 | 767 | | |
768 | 768 | | |
769 | | - | |
770 | | - | |
771 | | - | |
772 | | - | |
| 769 | + | |
| 770 | + | |
773 | 771 | | |
774 | 772 | | |
775 | 773 | | |
| |||
0 commit comments