DATA-DOG/go-sqlmock

SAST-Check- Dereference after null check sqlmock_go18.go file

raghvendra-dixit opened this issue · 0 comments

Operating system and Go Version

Linux

Issue

As part of SAST tool run Coverity scam, we could see the code in the mentioned file could land up in null check exception error. Attached screenshot for reference.
sqlmock_go18

image

Reproduction steps

Expected Result

we should be handling the error properly here.

Actual Result