tlsfuzzer/tlslite-ng

Cleanup Parser

Open

#17 opened on Jun 13, 2015

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Python (95 forks)auto 404
good first issuehelp wanted

Repository metrics

Stars
 (269 stars)
PR merge metrics
 (PR metrics pending)

Description

tlslite.utils.codec.Parser uses the SyntaxError exception in case the received data can't be parsed as requested.

This is problematic, as the same exception is raised by the runtime environment when there are syntax errors in running code. So a typo in low level code is easy to miss and hard to debug.

Make the Parser raise a TLSLite specific exception in cases like this.

The methods in Parser should also be documented.

Contributor guide