[Bug]: Infinite loop when there is single double quote in matplotlibrc #22636
Labels
Release critical
For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
status: confirmed bug
Milestone
Bug summary
This code https://github.com/timhoffm/matplotlib/blob/7c378a8f3f30ce57c874a851f3af8af58f1ffdf6/lib/matplotlib/cbook/__init__.py#L403-L415 on the main branch (not released yet) falls into an infinite loop when there is only one double quotation because when
s.find('"', quote_pos + 1) == -1
pos == 0
context:
Code for reproduction
Actual outcome
The program doesn't exit.
Expected outcome
Show an error or set
'"aa'
.Additional information
No response
Operating system
No response
Matplotlib Version
3.6.0.dev1816+gb9ae51ca8c.d20220311
Matplotlib Backend
No response
Python version
Python 3.10.0
Jupyter version
No response
Installation
No response
The text was updated successfully, but these errors were encountered: