Skip to content

Commit

Permalink
SDE: Fix for the crash with CLOB type (#3001)
Browse files Browse the repository at this point in the history
  • Loading branch information
szekerest committed Sep 17, 2012
1 parent 7c8ed4d commit c18c8a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mapsde.c
Expand Up @@ -777,6 +777,7 @@ static int sdeGetRecord(layerObj *layer, shapeObj *shape)
#ifdef SE_CLOB_TYPE

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

0 comments on commit c18c8a3

Please sign in to comment.