mirror of
https://repo.or.cz/socat.git
synced 2025-07-09 05:46:32 +00:00
Fixed possible integer overflow with option -b
This commit is contained in:
parent
0c65370ae5
commit
8e6b341f59
4 changed files with 66 additions and 2 deletions
3
procan.c
3
procan.c
|
@ -158,6 +158,9 @@ int procan(FILE *outfile) {
|
|||
"virtual memory (kbytes) %24"F_rlim_max"%24"F_rlim_max"\n",
|
||||
rlim.rlim_cur, rlim.rlim_max);
|
||||
}
|
||||
#endif
|
||||
#ifdef SIZE_MAX
|
||||
fprintf(outfile, "SIZE_MAX = %-24lu\n", SIZE_MAX);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue