Skip to content

Commit c18c8a3

Browse files
committed
SDE: Fix for the crash with CLOB type (MapServer#3001)
1 parent 7c8ed4d commit c18c8a3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mapsde.c

+1
Original file line numberDiff line numberDiff line change
@@ -777,6 +777,7 @@ static int sdeGetRecord(layerObj *layer, shapeObj *shape)
777777
#ifdef SE_CLOB_TYPE
778778

779779
case SE_CLOB_TYPE:
780+
memset(&clobval, 0, sizeof(clobval)); /* to prevent from the crash in SE_stream_get_clob */
780781
status = SE_stream_get_clob(sde->connPoolInfo->stream, (short) (i+1), &clobval);
781782
if(status == SE_SUCCESS) {
782783
shape->values[i] = (char *)msSmallMalloc(sizeof(char)*clobval.clob_length);

0 commit comments

Comments
 (0)