Toblerity / Fiona

Fiona reads and writes geographic data files
https://fiona.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
1.14k stars 202 forks source link

Fix leak in set_proj_search_path #1314

Closed QuLogic closed 9 months ago

QuLogic commented 9 months ago

The CSLAddString function takes a char *, not a const char *, which may turn into an error on new GCC. It also allocates a new array when given NULL, which is copied by OSRSetPROJSearchPaths, so it is leaked.

sgillies commented 9 months ago

@sgillies Note to self to backport this.