Opened 17 years ago
Closed 17 years ago
#1776 closed defect (fixed)
OGR_L_CreateField does not validate the submitted field defn
Reported by: | Ari Jolma | Owned by: | Mateusz Łoskot |
---|---|---|---|
Priority: | normal | Milestone: | 1.5.0 |
Component: | OGR_SF | Version: | unspecified |
Severity: | normal | Keywords: | |
Cc: | warmerdam |
Description
ogrlayer.cpp:454 should probably call VALIDATE_POINTER(hField)
Change History (5)
comment:1 by , 17 years ago
Cc: | added |
---|---|
Milestone: | → 1.5.0 |
Owner: | changed from | to
comment:2 by , 17 years ago
Status: | new → assigned |
---|
comment:3 by , 17 years ago
comment:4 by , 17 years ago
Note:
See TracTickets
for help on using tickets.
Skimming a few files (ogr_api.cpp, ogrlayer.cpp) it doesn't seem like validation has been incorporated into the OGR code yet.
Mateusz, as time permits could you continue to work on this? I think there will be C callable functions implemented in gdal/ogr and gdal/ogr/ogrsf_frmts/generic. You can skim ogr/ogr_api.h to get an idea if you have found them all.