From acff5478712c8aada7d4da89b7369255d27ce070 Mon Sep 17 00:00:00 2001 From: th1nk3r-ing Date: Fri, 14 Apr 2023 17:42:33 +0800 Subject: [PATCH] fix: fix address overflow It would cause overflow when the highest bit of the address is 1. So, we should using `strtoull`, not `strtoll` --- ijkmedia/ijkplayer/ijkavutil/ijkdict.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ijkmedia/ijkplayer/ijkavutil/ijkdict.c b/ijkmedia/ijkplayer/ijkavutil/ijkdict.c index 5599097363..986e47230f 100644 --- a/ijkmedia/ijkplayer/ijkavutil/ijkdict.c +++ b/ijkmedia/ijkplayer/ijkavutil/ijkdict.c @@ -166,7 +166,7 @@ uintptr_t ijk_av_dict_strtoptr(char * value) { if(value[0] !='0' || (value[1]|0x20)!='x') { return NULL; } - ptr = strtoll(value, &next, 16); + ptr = strtoull(value, &next, 16); if (next == value) { return NULL; }