Ticket #4106 (closed defect: duplicate)

Opened 2 years ago

Last modified 2 years ago

SWQGeneralEvaluator method crashes for a SWQ_ISNULL evaluation

Reported by: math Owned by: warmerdam
Priority: high Milestone:
Component: default Version: 1.8.0
Severity: major Keywords:
Cc:

Description

I've took a look at the code, and the problem is that for this case, we don't have a comparison value, since we just want to look if it's null.

So this code is failing because sub_node_values[1] is NULL or invalid:

sub_node_values[1]->float_value = sub_node_values[1]->int_value;

I've fixed my version this way in swq_op_general.cpp, ln 113:

if( node->nSubExprCount > 1 && sub_node_values[1]->field_type == SWQ_INTEGER )
    sub_node_values[1]->float_value = sub_node_values[1]->int_value;

Change History

Changed 2 years ago by rouault

  • status changed from new to closed
  • resolution set to duplicate

Duplicate of #4091

Note: See TracTickets for help on using tickets.