Hi,
Issue found by Coveriy Scan.
CID 210685 (#1 of 1): Explicit null dereferenced (FORWARD_NULL)

file: iup_attrib.c
function: IupStoreAttribute
line: 584

7. var_deref_model: Passing null pointer value to IupStoreAttribute, which 
dereferences it. 

Function IupStoreGlobal dereference var "value", in call function sscanf
in function iGlobalSet.

Possible solution?
Add check in function IupStoreAttribute.

  if (!ih && name != NULL && value != NULL)
  {
    IupStoreGlobal(name, value);
    return;
  }

Best.
Ranier

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to