Repository navigation
Commit 005a8b4
parser json BUGFIX use-after-free of escaped member names
A member name containing escape sequences is decoded into a buffer
owned by the JSON context, which is freed by the next
lyjson_ctx_next(). lydjson_meta_attr_instance() and lydjson_envelope()
kept using the name/prefix pointing into it after that call, so take
ownership of the buffer the same way lydjson_subtree_r() does.1 parent 3749543 commit 005a8b4
2 files changed
Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
754 | 754 | | |
755 | 755 | | |
756 | 756 | | |
| 757 | + | |
757 | 758 | | |
758 | 759 | | |
759 | 760 | | |
| |||
773 | 774 | | |
774 | 775 | | |
775 | 776 | | |
| 777 | + | |
776 | 778 | | |
777 | 779 | | |
778 | 780 | | |
| |||
851 | 853 | | |
852 | 854 | | |
853 | 855 | | |
| 856 | + | |
854 | 857 | | |
855 | 858 | | |
856 | 859 | | |
| |||
2109 | 2112 | | |
2110 | 2113 | | |
2111 | 2114 | | |
| 2115 | + | |
2112 | 2116 | | |
2113 | 2117 | | |
2114 | 2118 | | |
| |||
2127 | 2131 | | |
2128 | 2132 | | |
2129 | 2133 | | |
| 2134 | + | |
2130 | 2135 | | |
2131 | 2136 | | |
2132 | 2137 | | |
| |||
2151 | 2156 | | |
2152 | 2157 | | |
2153 | 2158 | | |
| 2159 | + | |
2154 | 2160 | | |
2155 | 2161 | | |
2156 | 2162 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
223 | 229 | | |
224 | 230 | | |
225 | 231 | | |
| |||
990 | 996 | | |
991 | 997 | | |
992 | 998 | | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
993 | 1012 | | |
994 | 1013 | | |
995 | 1014 | | |
| |||
0 commit comments