[bTSstream-devel] DBD: restrict range of valid characters

Christophe Massiot git at videolan.org
Mon Jul 6 23:27:30 CEST 2015


bitstream | branch: master | Christophe Massiot <cmassiot at openheadend.tv> | Mon Jul  6 23:26:48 2015 +0200| [7f82df5b40072956e2a0b759f831df4cf010e5bc] | committer: Christophe Massiot

DBD: restrict range of valid characters

&, " are not allowed in XML.

> http://git.videolan.org/gitweb.cgi/bitstream.git/?a=commit;h=7f82df5b40072956e2a0b759f831df4cf010e5bc
---

 dvb/si/desc_66.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dvb/si/desc_66.h b/dvb/si/desc_66.h
index f53e215..8873e9c 100644
--- a/dvb/si/desc_66.h
+++ b/dvb/si/desc_66.h
@@ -97,7 +97,7 @@ static inline void desc66_print(const uint8_t *p_desc, f_print pf_print,
 
     for (i = 0; i < i_selector_byte_length; i++) {
         sprintf(psz_selector_byte + 2 * i, "%02x", p_selector_byte[i]);
-        if (p_selector_byte[i] >= 32 && p_selector_byte[i] <= 127 && p_selector_byte[i] != '"')
+        if (p_selector_byte[i] >= 48 && p_selector_byte[i] <= 127 && p_selector_byte[i] != '"')
             psz_selector_byte_txt[i] = p_selector_byte[i];
         else
             psz_selector_byte_txt[i] = '.';



More information about the biTStream-devel mailing list