Sir Mordred The Traitor <mordred@s-mail.com> writes:
authorBruce Momjian <bruce@momjian.us>
Thu, 29 Aug 2002 23:05:44 +0000 (23:05 +0000)
committerBruce Momjian <bruce@momjian.us>
Thu, 29 Aug 2002 23:05:44 +0000 (23:05 +0000)
commit9858a3a43f9c40f445699dae7f9d1839cb42fc4c
treeed9a6b63842687ff1662b8bc2066939f9cef8336
parentdbc4d615ca7de93f161d9a7dcd2a889ccc5a6513
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
src/backend/utils/adt/geo_ops.c