diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-05-10 16:06:50 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-05-15 10:04:50 +0200 |
commit | df9eca44f86cfb3cfc9283ed898ddc67d30a2963 (patch) | |
tree | 333546cb3a550327864556c39942eb5b8f07961d | |
parent | a563a1468f5c5dcdccd5a9ed0009cb3edbde6813 (diff) | |
download | ffmpeg-df9eca44f86cfb3cfc9283ed898ddc67d30a2963.tar.gz |
libavutil/mem: use size_t for the length in av_strdup()
the string length is not constrained to INT_MAX
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 4950bd4ebedbb6289734234bb2a719820f565c41)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavutil/mem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/mem.c b/libavutil/mem.c index 5fd2395dab..da291fb970 100644 --- a/libavutil/mem.c +++ b/libavutil/mem.c @@ -266,7 +266,7 @@ char *av_strdup(const char *s) { char *ptr = NULL; if (s) { - int len = strlen(s) + 1; + size_t len = strlen(s) + 1; ptr = av_realloc(NULL, len); if (ptr) memcpy(ptr, s, len); |