forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitef0eecf
committed
This simple patch to catalog/pg_type.c fixes a buffer overrun. It
was detected by Electric Fence and triggered by statements like:SELECT * into table t from pg_database;The system would crash on a memmove call in DataFile() with argumentslike this:memmove(0x0, 0x0, 0);Maurice Gittens1 parentdbf34c5 commitef0eecf
1 file changed
+4
-2
lines changedLines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
318 | 318 |
| |
319 | 319 |
| |
320 | 320 |
| |
| 321 | + | |
321 | 322 |
| |
322 | 323 |
| |
323 | 324 |
| |
| |||
387 | 388 |
| |
388 | 389 |
| |
389 | 390 |
| |
390 |
| - | |
| 391 | + | |
| 392 | + | |
391 | 393 |
| |
392 | 394 |
| |
393 | 395 |
| |
|
0 commit comments
Comments
(0)