Skip to content

iffy handling 2-03-YYY #59

@vsouvan

Description

@vsouvan

Code in question is bufr_dataset.c:1778,

  case TYPE_CHNG_REF_VAL_OP :
     ival = bufr_value_get_int32( bd->value );
     if (isdebug)
        {
        sprintf( errmsg, _("INT: %llu "), (unsigned long long)ival );
        bufr_print_debug( errmsg );
        }
     if (ival < 0)
        {
        ival = bufr_negative_ivalue( ival, bd->encoding.nbits );

ival is uint64_t, which makes the "if (ival < 0)" test a NOP. Not entirely sure what was intended here so I added a FIXME comment and left it alone.


Imported from Launchpad using lp2gh.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions