mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-25 00:14:02 +00:00
sanity check hdr_buf size
This commit is contained in:
parent
89b6fa479e
commit
8360054884
@ -206,6 +206,8 @@ int main(int argc, char *argv[])
|
|||||||
printf(" by Jim Pettinato - circa 2003 " NEWLINE);
|
printf(" by Jim Pettinato - circa 2003 " NEWLINE);
|
||||||
printf(" extended by Simon Goldschmidt - 2009 " NEWLINE NEWLINE);
|
printf(" extended by Simon Goldschmidt - 2009 " NEWLINE NEWLINE);
|
||||||
|
|
||||||
|
LWIP_ASSERT("sizeof(hdr_buf) must fit into an u16_t", sizeof(hdr_buf) <= 0xffff);
|
||||||
|
|
||||||
strcpy(path, "fs");
|
strcpy(path, "fs");
|
||||||
for (i = 1; i < argc; i++) {
|
for (i = 1; i < argc; i++) {
|
||||||
if (argv[i] == NULL) {
|
if (argv[i] == NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user