Re: [PATCH] [cgroup/testing] cg_read_strcmp: Fix null pointer dereference

From: Chris Down
Date: Sat Jul 25 2020 - 16:23:22 EST


Gaurav Singh writes:
Passing NULL in strcmp will cause a segmentation fault.
Fix this by returning -1 if expected is NULL pointer.

Did you actually encounter this while running the tests?