Re: [PATCH v2] coccinelle: strncpy+truncation by strscpy

From: Julia Lawall
Date: Sat Jul 14 2018 - 07:59:09 EST


> +msg = "SUGGESTION: strncpy followed by truncation can be strscpy, if the destination buffer does not need to be fully overwritten"
> +coccilib.report.print_report(p[0], msg)

This is the first SUGGESTION. I don't know if anyone out there is relying
on it always being WARNING or ERROR.

julia