Commit bd837a0
committed
Fix matplotlib#4230: Don't overflow buffer with sketch path.
There's no good way to estimate the length of the string when
sketch is turned on, so I've just bitten the bullet and made
the string dynamically reallocatable after all. It's a bit of
a performance regression in that there is always a string copy
upon creating the Python string object, but at least now this
should work for arbitrary path transformations.1 parent daa51ca commit bd837a0
File tree
7 files changed
+12230
-42
lines changed- lib/matplotlib
- backends
- tests
- baseline_images/test_path
- src
7 files changed
+12230
-42
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
540 | 540 | | |
541 | 541 | | |
542 | 542 | | |
543 | | - | |
| 543 | + | |
| 544 | + | |
544 | 545 | | |
545 | 546 | | |
546 | 547 | | |
547 | 548 | | |
548 | 549 | | |
549 | | - | |
| 550 | + | |
550 | 551 | | |
551 | 552 | | |
552 | 553 | | |
553 | 554 | | |
554 | 555 | | |
555 | 556 | | |
556 | 557 | | |
557 | | - | |
| 558 | + | |
| 559 | + | |
558 | 560 | | |
559 | 561 | | |
560 | 562 | | |
| |||
Binary file not shown.
0 commit comments