Commit 93a14f15 authored by Raymond Mantchala's avatar Raymond Mantchala Committed by Linus Torvalds

[PATCH] dvb: dst: ASN.1 length field Fix

ASN.1 length field Fix
Signed-off-by: default avatarRaymond Mantchala <raymond.mantchala@streamvision.ft>
Signed-off-by: default avatarManu Abraham <manu@linuxtv.org>
Signed-off-by: default avatarMichael Krufky <mkrufky@linuxtv.org>
Cc: Johannes Stezenbach <js@linuxtv.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 2b70a2f5
...@@ -328,7 +328,8 @@ u32 asn_1_decode(u8 *asn_1_array) ...@@ -328,7 +328,8 @@ u32 asn_1_decode(u8 *asn_1_array)
} else { } else {
word_count = length_field & 0x7f; word_count = length_field & 0x7f;
for (count = 0; count < word_count; count++) { for (count = 0; count < word_count; count++) {
length = (length | asn_1_array[count + 1]) << 8; length = length << 8;
length += asn_1_array[count + 1];
dprintk(verbose, DST_CA_DEBUG, 1, " Length=[%04x]", length); dprintk(verbose, DST_CA_DEBUG, 1, " Length=[%04x]", length);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment