Repository navigation
Commit d9766ae
committed
fix(pipeline): keep route properties that are not UTF-8
Review follow-up to the previous commit. Properties hold source text
as its bytes, so a Latin-1 docstring stored beside route_path is not
UTF-8. The strict yyjson parse rejected that whole object, so the
route pass skipped rebuilding the handler's Route, where the old quote
scan had rebuilt it. Parse with YYJSON_READ_ALLOW_INVALID_UNICODE, as
internal/cbm/diagram.c does.
Test: infrascan_decorator_route_metadata_survives_invalid_utf8 fails
with the strict parse, and passes with this change and on 4cf4414.
Signed-off-by: Petteri Ponsimaa <petterip@gmail.com>1 parent 671bc49 commit d9766ae
2 files changed
Lines changed: 29 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
446 | 446 | | |
447 | 447 | | |
448 | 448 | | |
449 | | - | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
450 | 452 | | |
451 | 453 | | |
452 | 454 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
620 | 620 | | |
621 | 621 | | |
622 | 622 | | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
623 | 648 | | |
624 | 649 | | |
625 | 650 | | |
| |||
794 | 819 | | |
795 | 820 | | |
796 | 821 | | |
| 822 | + | |
797 | 823 | | |
798 | 824 | | |
799 | 825 | | |
| |||
0 commit comments