Return to ctfdump.c CVS log | Up to [local] / src / usr.bin / ctfdump |
version 1.5, 2017/08/29 21:10:20 | version 1.6, 2017/09/19 08:28:57 | ||
---|---|---|---|
|
|
||
} | } | ||
if (fstat(fd, &st) == -1) { | if (fstat(fd, &st) == -1) { | ||
warn("fstat"); | warn("fstat"); | ||
close(fd); | |||
return 1; | return 1; | ||
} | } | ||
if ((uintmax_t)st.st_size > SIZE_MAX) { | if ((uintmax_t)st.st_size > SIZE_MAX) { | ||
warnx("file too big to fit memory"); | warnx("file too big to fit memory"); | ||
close(fd); | |||
return 1; | return 1; | ||
} | } | ||