tiff: run strlen() after setting the pointer
Fixes CID733803 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
f03c0f6afc
commit
d185c8a79b
@ -208,8 +208,9 @@ static char *doubles2str(double *dp, int count, const char *sep)
|
||||
{
|
||||
int i;
|
||||
char *ap, *ap0;
|
||||
int component_len = 15 + strlen(sep);
|
||||
int component_len;
|
||||
if (!sep) sep = ", ";
|
||||
component_len = 15 + strlen(sep);
|
||||
ap = av_malloc(component_len * count);
|
||||
if (!ap)
|
||||
return NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user