libaacs | branch: master | npzacs <npz...@gmail.com> | Sun Jun 30 12:20:25 2013 +0300| [dc46ea184e05f37507d89c3a6dd5ded2ce002dd2] | committer: npzacs
Added check for too long hex strings in config file > http://git.videolan.org/gitweb.cgi/libaacs.git/?a=commit;h=dc46ea184e05f37507d89c3a6dd5ded2ce002dd2 --- src/util/strutl.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/util/strutl.c b/src/util/strutl.c index 0c41acc..c66f971 100644 --- a/src/util/strutl.c +++ b/src/util/strutl.c @@ -208,6 +208,12 @@ static int _str_is_hex_string(const char *str, int len) } } + /* check end */ + if (isxdigit(str[ii])) { + //DEBUG(DBG_AACS, "Invalid hex string (too long): %s", str); + return 0; + } + return 1; } _______________________________________________ libaacs-devel mailing list libaacs-devel@videolan.org http://mailman.videolan.org/listinfo/libaacs-devel