shapelib icon indicating copy to clipboard operation
shapelib copied to clipboard

Don't attempt to write on invalid input

Open pramsey opened this issue 5 years ago • 3 comments

Not sure what exact input causes this, but it's necessary to regress PostGIS on all platforms

pramsey avatar Dec 02 '19 23:12 pramsey

The commit message doesn't match what the code does. What are the situations where p == NULL or nmemb == 0 ?

rouault avatar Dec 02 '19 23:12 rouault

Just blindly getting our software running again... https://github.com/postgis/postgis/commit/00eb4b44b4e8b7c98d8b9cbc611aa496812b33ee#diff-7dca6e3da1ca13b272669d5646bcf00bL118

pramsey avatar Dec 02 '19 23:12 pramsey

This looks reasonable to me.

r-barnes avatar Mar 19 '22 22:03 r-barnes

@rouault Once again, I propose to close this PR without merging.

thbeu avatar Aug 13 '24 14:08 thbeu