libaacs | branch: refs/tags/0.3.0 | npzacs <[email protected]> | Sun Sep 25 03:02:50 2011 +0300| [2beead386e447e6065aca12b68700e6fd718a0eb] | committer: npzacs
Removed incorrect check from hexstring_to_hex_array() > http://git.videolan.org/gitweb.cgi/libaacs.git/?a=commit;h=2beead386e447e6065aca12b68700e6fd718a0eb --- src/util/strutl.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/util/strutl.c b/src/util/strutl.c index fb49f42..0c41acc 100644 --- a/src/util/strutl.c +++ b/src/util/strutl.c @@ -118,14 +118,6 @@ static int _hexstring_to_unsigned_char(uint8_t *value, char c) int hexstring_to_hex_array(uint8_t *hex_array, uint32_t size, const char *hexstring) { - if (strlen(hexstring) > size * 2) - { - DEBUG(DBG_AACS, - "hex array is not sufficiently large enough to hold value " - "of hex string"); - return 0; - } - unsigned int i = 0; while (i < size) { _______________________________________________ libaacs-devel mailing list [email protected] http://mailman.videolan.org/listinfo/libaacs-devel
