OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f03c0f6
)
tiff: run strlen() after setting the pointer
author
Michael Niedermayer
<michaelni@gmx.at>
Wed, 17 Oct 2012 18:58:08 +0000
(20:58 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Wed, 17 Oct 2012 18:58:08 +0000
(20:58 +0200)
Fixes CID733803
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/tiff.c
patch
|
blob
|
history
diff --git
a/libavcodec/tiff.c
b/libavcodec/tiff.c
index
ad0b0ba
..
1f9a029
100644
(file)
--- a/
libavcodec/tiff.c
+++ b/
libavcodec/tiff.c
@@
-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;