[Bug 204230] [patch] bsdiff(1) - check file size against SIZE_MAX

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Nov 3 06:52:53 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204230

--- Comment #3 from Andrey A. Chernov <ache at FreeBSD.org> ---
Comment on attachment 162714
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=162714
proposed fix

This fix is not pretty. 
1) It does not set errno (EFBIG)
2) Next overflow is few lines below:
if(((I=malloc((oldsize+1)*sizeof(off_t)))==NULL) ||
    ((V=malloc((oldsize+1)*sizeof(off_t)))==NULL)) err(1,NULL);

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list