libaacs | branch: refs/tags/0.3.0 | npzacs <[email protected]> | Sun Sep 25 
03:02:50 2011 +0300| [a37a4870b3162b76763c0c23b8030f4a1ea6b0e8] | committer: 
Ano Nymous

Removed incorrect check from hexstring_to_hex_array()

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

 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

Reply via email to