cros-codecs icon indicating copy to clipboard operation
cros-codecs copied to clipboard

Remove unwraps and other runtime panics that result from invalid input

Open Gnurou opened this issue 1 year ago • 1 comments

An invalid stream should not make the program panic. This issue is to track the removal of all sources of panic from the code:

  • unwraps as a result of invalid input,
  • Explicit calls to panic and expect,
  • Potentially out-of-bounds accesses in vectors or array (replace them with get).

Gnurou avatar Nov 25 '23 11:11 Gnurou

I assume we can still panic from logic errors and general sanity-checks from asserts and friends, right?

dwlsalmeida avatar Dec 05 '23 17:12 dwlsalmeida