forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd59ff4a
committed
Fix another instance of unsafe coding for shm_toc_lookup failure.
One or another author of commit5bcf389 seems to have thought thatcomputing an offset from a NULL pointer would yield another NULL pointer.There may possibly be architectures where that works, but common machinesdon't work like that. Per a quick code review of places callingshm_toc_lookup and not using noError = false.1 parent957ff08 commitd59ff4a
1 file changed
+5
-1
lines changedLines changed: 5 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2582 | 2582 |
| |
2583 | 2583 |
| |
2584 | 2584 |
| |
| 2585 | + | |
2585 | 2586 |
| |
2586 | 2587 |
| |
2587 |
| - | |
| 2588 | + | |
| 2589 | + | |
| 2590 | + | |
| 2591 | + | |
2588 | 2592 |
| |
2589 | 2593 |
| |
2590 | 2594 |
| |
|
0 commit comments
Comments
(0)