daniestevez / dvb-gse

Rust implementation of DVB-GSE
Apache License 2.0
17 stars 3 forks source link

gsepacket: add check on slice bounds #30

Closed daniestevez closed 1 year ago

daniestevez commented 1 year ago

By feeding random data to the GSE defragmenter I have found that it panics occasionally. It seems that it happens when the GSE total length is smaller than the header length, which causes the beginning index of the data slice to be larger than the end index.