...
This compliant solution does not use the foo_header
pointer.
Code Block | ||
---|---|---|
| ||
char *data; struct foo_header header; memcpy(&header, data + offset, sizeof(header)); if (header.len < FOO) /* ... */ |
...
...
This compliant solution does not use the foo_header
pointer.
Code Block | ||
---|---|---|
| ||
char *data; struct foo_header header; memcpy(&header, data + offset, sizeof(header)); if (header.len < FOO) /* ... */ |
...