- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit3f9132e
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 parent6a3e578 commit3f9132e
1 file changed
+27
-18
lines changedLines changed: 27 additions & 18 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
210 | 210 |
| |
211 | 211 |
| |
212 | 212 |
| |
213 |
| - | |
214 |
| - | |
215 | 213 |
| |
216 | 214 |
| |
217 |
| - | |
218 | 215 |
| |
219 | 216 |
| |
220 | 217 |
| |
| |||
226 | 223 |
| |
227 | 224 |
| |
228 | 225 |
| |
229 |
| - | |
230 |
| - | |
231 |
| - | |
232 |
| - | |
233 |
| - | |
234 |
| - | |
235 |
| - | |
236 |
| - | |
237 | 226 |
| |
238 | 227 |
| |
239 | 228 |
| |
240 |
| - | |
241 |
| - | |
| 229 | + | |
| 230 | + | |
242 | 231 |
| |
243 | 232 |
| |
244 | 233 |
| |
245 | 234 |
| |
246 | 235 |
| |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
247 | 240 |
| |
248 | 241 |
| |
249 |
| - | |
250 |
| - | |
251 |
| - | |
252 |
| - | |
253 |
| - | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
254 | 252 |
| |
255 | 253 |
| |
256 | 254 |
| |
| |||
259 | 257 |
| |
260 | 258 |
| |
261 | 259 |
| |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
262 | 270 |
| |
263 | 271 |
| |
264 | 272 |
| |
265 | 273 |
| |
266 | 274 |
| |
| 275 | + | |
267 | 276 |
| |
268 | 277 |
| |
269 | 278 |
| |
|
0 commit comments
Comments
(0)