[bTSstream-devel] Error in scte35_validate.
Egorov N.V.
khenar at lazyteam.org
Mon Mar 19 15:12:35 CET 2018
I found that the folowing code will cause segmentation fault:
#include <bitstream/mpeg/psi.h>
#include <bitstream/scte/35.h>
unsigned char crash[] = {
0xfc, 0x00, 0x00, 0x00, 0x9c, 0x00, 0x00
};
int
main()
{
if (!psi_validate(crash))
return 100;
if (!psi_get_syntax(crash) &&
psi_get_tableid(crash) == SCTE35_TABLE_ID) {
return scte35_validate(crash);
}
return 120;
}
I add in gitlab issue about this case. I attach the patch to this
message. The scte35 is not well known to me, so I am not shure that the
patch is correct.
Can anyone help me with this issue?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Append-size-check-in-scte35_validate.patch
Type: text/x-patch
Size: 1057 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/bitstream-devel/attachments/20180319/b9546955/attachment.bin>
More information about the biTStream-devel
mailing list