Sir Mordred The Traitor <mordred@s-mail.com> writes:

Bruce Momjian <bruce@momjian.us>

Commit: 9858a3a43f9c40f445699dae7f9d1839cb42fc4c
Author: Bruce Momjian <bruce@momjian.us>
Date: 2002-08-29T23:05:44Z
Releases: 7.3.1
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 Conway

Files

PathChange+/−
src/backend/utils/adt/geo_ops.c modified +30 −9