Yes, there are two integers there. And we provide an array with twice the
size, but count still contains just the number of points. It is correct.

Best,
Scuri


Em qui., 16 de jul. de 2020 às 15:54, Ranier Vilela <ranier_...@hotmail.com>
escreveu:

> De: Antonio Scuri <antonio.sc...@gmail.com>
> Enviado: quinta-feira, 16 de julho de 2020 18:50
> Para: IUP discussion list.
> Assunto: Re: [Iup-users] IUP assorted issues (part IV)
>
> >>  Why Coverity claims this?
> >>  4. access_dbuff_in_call: Calling Polygon indexes array (POINT *)points
> with index count.
> >>  Polygon expect param const POINT *apt;
> >> and IUP uses array type int?
>
>   >Yes, it is.
> Well, Polygon expect variable type CPOINT:
> https://docs.microsoft.com/en-us/previous-versions/dd162805(v=vs.85)
>
> typedef struct tagPOINT {
>   LONG x;
>   LONG y;
> } POINT, *PPOINT;
>
> I believe, that can corrupt memory.
>
> regards,
> Ranier Vilela
>
> _______________________________________________
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to