That's correct. value can be NULL

Best,
Scuri


2018-01-16 15:53 GMT-02:00 Ranier VF <ranier_...@hotmail.com>:

> Hi,
> Sorry by mistake.
> Function affected is iAttribParse
> Line: 1408
>
>  IupStoreAttribute(ih, name, value);
>
> Best.
> Ranier
> ________________________________________
> De: Ranier VF <ranier_...@hotmail.com>
> Enviado: terça-feira, 16 de janeiro de 2018 17:49
> Para: IUP discussion list.
> Assunto: [Iup-users] CID 210685 (#1 of 1): Explicit null dereferenced
> (FORWARD_NULL)
>
> 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
>
> ------------------------------------------------------------
> ------------------
> 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
>
------------------------------------------------------------------------------
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