ess-dmsc/kafka-to-nexus

UB in Streamer test

Closed this issue · 2 comments

The test introduced here causes SEGV.

It can obviously not work in the current form because it will lead to dereference of nullptr.

This bug only surfaces now, probably due to unrelated changes in other places as usual with undefined behavior.

I'm not very familiar with Streamer class, so I'm not sure what exactly we want to test here.

Right, I will take a look at it. Note that the solution is not to remove the test. We want more tests, not fewer.