behave-contrib / behave-html-pretty-formatter

HTML Pretty formatter for Behave
GNU General Public License v3.0
13 stars 4 forks source link

Replace invalid data when embeding text files. #42

Closed modehnal closed 1 year ago

modehnal commented 1 year ago

I have encountered quite a race condition when generating debug files from binaries. I managed to get null bytes to the data I wanted to embed.

This in effect failed on null bytes exception which threw away the entire html log. That is an overkill as that was the last embed and there was nothing wrong with the log itself.

We could replace the invalid data on embedding instead of failing.