Don't infer the length of the payload from the buffer size.  Use the UDP header length property instead.
0.2.1