libaacs | branch: master | Janusz Dziemidowicz <rrapt...@nails.eu.org> | Sun Dec 15 21:11:37 2013 +0200| [e3def00a3096d647779fb47948a68d21033610db] | committer: npzacs
add_entry() receives a hexstring, so the length check should be twice the number of bytes. > http://git.videolan.org/gitweb.cgi/libaacs.git/?a=commit;h=e3def00a3096d647779fb47948a68d21033610db --- src/file/keydbcfg-parser.y | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/file/keydbcfg-parser.y b/src/file/keydbcfg-parser.y index ea0a8dc..b58d44a 100644 --- a/src/file/keydbcfg-parser.y +++ b/src/file/keydbcfg-parser.y @@ -699,7 +699,7 @@ static int add_entry(title_entry_list *list, int type, char *entry) switch (type) { case ENTRY_TYPE_DISCID: - CHECK_KEY_LENGTH("discid", 20) + CHECK_KEY_LENGTH("discid", 40) hexstring_to_hex_array(list->entry.discid, 20, entry); X_FREE(entry); break; @@ -711,19 +711,19 @@ static int add_entry(title_entry_list *list, int type, char *entry) break; case ENTRY_TYPE_MEK: - CHECK_KEY_LENGTH("mek", 16) + CHECK_KEY_LENGTH("mek", 32) X_FREE(list->entry.mek); list->entry.mek = entry; break; case ENTRY_TYPE_VID: - CHECK_KEY_LENGTH("vid", 16) + CHECK_KEY_LENGTH("vid", 32) X_FREE(list->entry.vid); list->entry.vid = entry; break; case ENTRY_TYPE_VUK: - CHECK_KEY_LENGTH("vuk", 16) + CHECK_KEY_LENGTH("vuk", 32) X_FREE(list->entry.vuk); list->entry.vuk = entry; break; _______________________________________________ libaacs-devel mailing list libaacs-devel@videolan.org https://mailman.videolan.org/listinfo/libaacs-devel