Re: [hackers] [sbase] [PATCH 02/10] od: Fix buffer overflow if -N flag is larger than BUFSIZ

From: Michael Forney <>
Date: Tue, 6 Dec 2016 00:08:41 -0800

On Mon, Dec 5, 2016 at 4:47 AM, Silvan Jegen <> wrote:
> From what I understand, max is an off_t which is signed and set to -1
> (if not changed by a command line flag). If we cast this to the
> unsigned size_t we get a very big number in the case where 'max' is
> not set by a flag and the buffer size is used instead. Looks correct
> to me.

I will switch it back to check if max >= 0, because I think there
could be a problem if off_t was larger than size_t.
Received on Tue Dec 06 2016 - 09:08:41 CET

This archive was generated by hypermail 2.3.0 : Tue Dec 06 2016 - 09:12:15 CET