and "if (*value_max_size < value_len)" fail!
>
> Best regards,
> Ranier Vilela
>
> De: Antonio Scuri
> Enviado: terça-feira, 4 de junho de 2019 11:29
> Para: IUP discussion list.
> Assunto: Re: [Iup-users] CID 210668 (#1 o
est regards,
> Ranier Vilela
>
>
> De: Antonio Scuri
> Enviado: terça-feira, 4 de junho de 2019 11:09
> Para: IUP discussion list.
> Assunto: Re: [Iup-users] CID 210668 (#1 of 1): Explicit null dereferenced
> (FORWARD_NULL)
>
> The realloc function does the malloc job.
Hi,
And what happens if "if (*value_max_size < value_len)" fail and
realloc is not called?
Best regards,
Ranier Vilela
De: Antonio Scuri
Enviado: terça-feira, 4 de junho de 2019 11:09
Para: IUP discussion list.
Assunto: Re: [Iup-users] C
The realloc function does the malloc job. And it will only increase the
size of the value pointer when necessary.
Best,
Scuri
Em seg, 3 de jun de 2019 às 22:29, Ranier VF
escreveu:
> Hi,
> Sorry but can't undestand the logic.
> iupmatex_clipboard.c
> line 505, call function:
>
> value =
Hi,
Sorry but can't undestand the logic.
iupmatex_clipboard.c
line 505, call function:
value = iMatrixExStrCopyData(value, _max_size, data, value_len);
iMatrixExStrCopyData, call memcpy with value without malloc?
static char* iMatrixExStrCopyData(char* value, int *value_max_size, const char*