Commit 3508f0e
* AVRO-4228: Fix BinaryDecoder::arrayNext() to handle negative block counts
* AVRO-4228: Add test for arrayNext() with negative block counts
* AVRO-4228: Move negative block count to second block in test
* AVRO-4228: Avoid undefined behavior when negating INT64_MIN in doDecodeItemCount
---------
Co-authored-by: Gabriel Feyer <gabriel.feyer@indexexchange.com>
1 parent 58d20ab commit 3508f0e
2 files changed
Lines changed: 37 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
| 167 | + | |
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
| 173 | + | |
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2100 | 2100 | | |
2101 | 2101 | | |
2102 | 2102 | | |
| 2103 | + | |
| 2104 | + | |
| 2105 | + | |
| 2106 | + | |
| 2107 | + | |
| 2108 | + | |
| 2109 | + | |
| 2110 | + | |
| 2111 | + | |
| 2112 | + | |
| 2113 | + | |
| 2114 | + | |
| 2115 | + | |
| 2116 | + | |
| 2117 | + | |
| 2118 | + | |
| 2119 | + | |
| 2120 | + | |
| 2121 | + | |
| 2122 | + | |
| 2123 | + | |
| 2124 | + | |
| 2125 | + | |
| 2126 | + | |
| 2127 | + | |
| 2128 | + | |
| 2129 | + | |
| 2130 | + | |
| 2131 | + | |
| 2132 | + | |
| 2133 | + | |
| 2134 | + | |
| 2135 | + | |
| 2136 | + | |
2103 | 2137 | | |
2104 | 2138 | | |
2105 | 2139 | | |
| |||
2125 | 2159 | | |
2126 | 2160 | | |
2127 | 2161 | | |
| 2162 | + | |
2128 | 2163 | | |
2129 | 2164 | | |
2130 | 2165 | | |
| |||
0 commit comments