Date: Tue, 03 Nov 2015 06:52:52 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 204230] [patch] bsdiff(1) - check file size against SIZE_MAX Message-ID: <bug-204230-8-pwBdjbrmb9@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-204230-8@https.bugs.freebsd.org/bugzilla/> References: <bug-204230-8@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204230 --- Comment #3 from Andrey A. Chernov <ache@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-204230-8-pwBdjbrmb9>