postgis layers crash mapscript when sql exceeds buffer size
mappostgis.c uses fixed size buffers to process SQL. The size is currently
fixed at 6000 bytes. My application is generating SQL on the fly using
GeometryFromText with largish polygons that cause the SQL to be approx 28k
(that's just a single polygon). While I am researching alternate solutions, I
think that this is a serious flaw in the postgis driver.
Ideal solution:
* remove the need for fixed size buffers
As a minimum:
* clean up all references to hard-coded buffer allocation and use a defined
value that can be changed in one place
* detect buffer overflow and report error instead of crashing PHP.
Personally, I think that the minimum should be met for a 4.4 release. I have no
idea what would be required to eliminate the buffers entirely so I don't know if
that would be a reasonable change at this point for 4.4, but it should certainly
be considered for 4.5/6 or 5.0 (whichever comes next).
Change History
(5)
dependson: |
→ 431
|
Milestone: |
→ 4.4 release
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|