keepsimple1 / mdns-sd

Rust library for mDNS based Service Discovery
Apache License 2.0
89 stars 38 forks source link

Fix panic due to range out of bounds in txt record parsing #159

Closed Raphiiko closed 6 months ago

Raphiiko commented 6 months ago

I noticed the following panic in my crash reporting earlier:

range end index 303 out of range for slice of length 288 (C:\...\src\service_info.rs:645:25)

I'm not entirely sure if this would be the correct solution, but I've made an attempt.