- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit3c2ea65
committed
Be more wary of corrupt data in pageinspect's heap_page_items().
The original intent in heap_page_items() was to return nulls, notthrow an error or crash, if an item was sufficiently corrupt thatwe couldn't safely extract data from it. However, commitd6061f8utterly missed that memo, and not only put in an un-length-checkedcopy of the tuple's data section, but also managed to break the checkon sane nulls-bitmap length. Either mistake could possibly lead toa SIGSEGV crash if the tuple is corrupt.Bug: #18896Reported-by: Dmitry Kovalenko <d.kovalenko@postgrespro.ru>Author: Dmitry Kovalenko <d.kovalenko@postgrespro.ru>Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>Discussion:https://postgr.es/m/18896-add267b8e06663e3@postgresql.orgBackpatch-through: 131 parent148cc01 commit3c2ea65
1 file changed
+27
-18
lines changedLines changed: 27 additions & 18 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
212 | 212 |
| |
213 | 213 |
| |
214 | 214 |
| |
215 |
| - | |
216 |
| - | |
217 | 215 |
| |
218 | 216 |
| |
219 |
| - | |
220 | 217 |
| |
221 | 218 |
| |
222 | 219 |
| |
| |||
228 | 225 |
| |
229 | 226 |
| |
230 | 227 |
| |
231 |
| - | |
232 |
| - | |
233 |
| - | |
234 |
| - | |
235 |
| - | |
236 |
| - | |
237 |
| - | |
238 |
| - | |
239 | 228 |
| |
240 | 229 |
| |
241 | 230 |
| |
242 |
| - | |
243 |
| - | |
| 231 | + | |
| 232 | + | |
244 | 233 |
| |
245 | 234 |
| |
246 | 235 |
| |
247 | 236 |
| |
248 | 237 |
| |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
249 | 242 |
| |
250 | 243 |
| |
251 |
| - | |
252 |
| - | |
253 |
| - | |
254 |
| - | |
255 |
| - | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
256 | 254 |
| |
257 | 255 |
| |
258 | 256 |
| |
| |||
261 | 259 |
| |
262 | 260 |
| |
263 | 261 |
| |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
264 | 272 |
| |
265 | 273 |
| |
266 | 274 |
| |
267 | 275 |
| |
268 | 276 |
| |
| 277 | + | |
269 | 278 |
| |
270 | 279 |
| |
271 | 280 |
| |
|
0 commit comments
Comments
(0)