Skip to content
Snippets Groups Projects
  • Bruce Momjian's avatar
    9858a3a4
    Sir Mordred The Traitor <mordred@s-mail.com> writes: · 9858a3a4
    Bruce Momjian authored
    > 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
    9858a3a4
    History
    Sir Mordred The Traitor <mordred@s-mail.com> writes:
    Bruce Momjian authored
    > 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