Pattern: Size of pointer used instead of size of its data
Issue: -
Size of pointer used instead of size of its data. This is likely to lead to a buffer overflow. You probably intend to write sizeof(*varname)
.
Pattern: Size of pointer used instead of size of its data
Issue: -
Size of pointer used instead of size of its data. This is likely to lead to a buffer overflow. You probably intend to write sizeof(*varname)
.