[vlc-commits] hls: fix strtoull() error handling

Rémi Denis-Courmont git at videolan.org
Sat Nov 15 21:59:21 CET 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Nov 15 22:59:02 2014 +0200| [cd84eec0f5d64bc4ea6289029cc737e0f8358296] | committer: Rémi Denis-Courmont

hls: fix strtoull() error handling

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cd84eec0f5d64bc4ea6289029cc737e0f8358296
---

 modules/stream_filter/httplive.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/stream_filter/httplive.c b/modules/stream_filter/httplive.c
index 3f5cd00..2a59527 100644
--- a/modules/stream_filter/httplive.c
+++ b/modules/stream_filter/httplive.c
@@ -541,15 +541,15 @@ static int string_to_IV(char *string_hexa, uint8_t iv[AES_BLOCK_SIZE])
     if (len <= 16) {
         iv_hi = 0;
         iv_lo = strtoull(string_hexa, &end, 16);
-        if (end)
+        if (*end)
             return VLC_EGENERIC;
     } else {
         iv_lo = strtoull(&string_hexa[len-16], &end, 16);
-        if (end)
+        if (*end)
             return VLC_EGENERIC;
         string_hexa[len-16] = '\0';
         iv_hi = strtoull(string_hexa, &end, 16);
-        if (end)
+        if (*end)
             return VLC_EGENERIC;
     }
 



More information about the vlc-commits mailing list