pgsql-server/src/backend/utils/adt geo_ops.c

Started by Bruce Momjianalmost 24 years ago1 messagescomitters
Jump to latest
#1Bruce Momjian
bruce@momjian.us

CVSROOT: /cvsroot
Module name: pgsql-server
Changes by: momjian@postgresql.org 02/08/29 19:05:44

Modified files:
src/backend/utils/adt: geo_ops.c

Log message:
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