forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9858a3a
committed
Sir Mordred The Traitor <mordred@s-mail.com> writes:
> Upon invoking a polygon(integer, circle) function a> src/backend/utils/adt/geo_ops.c:circle_poly() function will gets> called, which suffers from a buffer overflow.>> 2) A src/backend/adt/utils/geo_ops.c:path_encode() fails to detect a> buffer overrun condition. It is called in multiple places, the most> interesting are path_out() and poly_out() functions.> 5) A src/backend/utils/adt/geo_ops.c:path_add() also fails to detect> a simple buffer overrun.I've attached a patch which should fix these problems.Neil Conway1 parentdbc4d61 commit9858a3a
1 file changed
+30
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
272 | | - | |
273 | | - | |
| 272 | + | |
| 273 | + | |
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
277 | 283 | | |
278 | 284 | | |
279 | 285 | | |
| |||
1230 | 1236 | | |
1231 | 1237 | | |
1232 | 1238 | | |
1233 | | - | |
| 1239 | + | |
1234 | 1240 | | |
1235 | 1241 | | |
1236 | 1242 | | |
| |||
3596 | 3602 | | |
3597 | 3603 | | |
3598 | 3604 | | |
3599 | | - | |
| 3605 | + | |
| 3606 | + | |
3600 | 3607 | | |
3601 | 3608 | | |
3602 | 3609 | | |
3603 | 3610 | | |
3604 | 3611 | | |
3605 | | - | |
| 3612 | + | |
| 3613 | + | |
| 3614 | + | |
| 3615 | + | |
| 3616 | + | |
| 3617 | + | |
| 3618 | + | |
| 3619 | + | |
3606 | 3620 | | |
3607 | 3621 | | |
3608 | 3622 | | |
| |||
4413 | 4427 | | |
4414 | 4428 | | |
4415 | 4429 | | |
4416 | | - | |
| 4430 | + | |
| 4431 | + | |
4417 | 4432 | | |
4418 | 4433 | | |
4419 | 4434 | | |
4420 | 4435 | | |
4421 | 4436 | | |
4422 | 4437 | | |
4423 | | - | |
| 4438 | + | |
| 4439 | + | |
| 4440 | + | |
| 4441 | + | |
| 4442 | + | |
| 4443 | + | |
| 4444 | + | |
4424 | 4445 | | |
4425 | 4446 | | |
4426 | | - | |
| 4447 | + | |
4427 | 4448 | | |
4428 | 4449 | | |
4429 | 4450 | | |
| |||
0 commit comments
Comments
(0)