Re: [PATCH] handle non-constant offsets in -Wstringop-overflow (PR 77608)

2017-12-07 Thread Jeff Law
On 12/01/2017 11:06 AM, Martin Sebor wrote: > On 12/01/2017 01:26 AM, Jeff Law wrote: >> On 11/30/2017 01:30 PM, Martin Sebor wrote: >>> On 11/22/2017 05:03 PM, Jeff Law wrote: On 11/21/2017 12:07 PM, Martin Sebor wrote: > On 11/21/2017 09:55 AM, Jeff Law wrote: >> On 11/19/2017 04:28

Re: [PATCH] handle non-constant offsets in -Wstringop-overflow (PR 77608)

2017-12-01 Thread Martin Sebor
On 12/01/2017 01:26 AM, Jeff Law wrote: On 11/30/2017 01:30 PM, Martin Sebor wrote: On 11/22/2017 05:03 PM, Jeff Law wrote: On 11/21/2017 12:07 PM, Martin Sebor wrote: On 11/21/2017 09:55 AM, Jeff Law wrote: On 11/19/2017 04:28 PM, Martin Sebor wrote: On 11/18/2017 12:53 AM, Jeff Law wrote:

Re: [PATCH] handle non-constant offsets in -Wstringop-overflow (PR 77608)

2017-12-01 Thread Jeff Law
On 11/30/2017 01:30 PM, Martin Sebor wrote: > On 11/22/2017 05:03 PM, Jeff Law wrote: >> On 11/21/2017 12:07 PM, Martin Sebor wrote: >>> On 11/21/2017 09:55 AM, Jeff Law wrote: On 11/19/2017 04:28 PM, Martin Sebor wrote: > On 11/18/2017 12:53 AM, Jeff Law wrote: >> On 11/17/2017 12:36

Re: [PATCH] handle non-constant offsets in -Wstringop-overflow (PR 77608)

2017-11-30 Thread Martin Sebor
On 11/22/2017 05:03 PM, Jeff Law wrote: On 11/21/2017 12:07 PM, Martin Sebor wrote: On 11/21/2017 09:55 AM, Jeff Law wrote: On 11/19/2017 04:28 PM, Martin Sebor wrote: On 11/18/2017 12:53 AM, Jeff Law wrote: On 11/17/2017 12:36 PM, Martin Sebor wrote: The attached patch enhances -Wstringop-o

Re: [PATCH] handle non-constant offsets in -Wstringop-overflow (PR 77608)

2017-11-22 Thread Jeff Law
On 11/21/2017 12:07 PM, Martin Sebor wrote: > On 11/21/2017 09:55 AM, Jeff Law wrote: >> On 11/19/2017 04:28 PM, Martin Sebor wrote: >>> On 11/18/2017 12:53 AM, Jeff Law wrote: On 11/17/2017 12:36 PM, Martin Sebor wrote: > The attached patch enhances -Wstringop-overflow to detect more

Re: [PATCH] handle non-constant offsets in -Wstringop-overflow (PR 77608)

2017-11-21 Thread Martin Sebor
On 11/21/2017 09:55 AM, Jeff Law wrote: On 11/19/2017 04:28 PM, Martin Sebor wrote: On 11/18/2017 12:53 AM, Jeff Law wrote: On 11/17/2017 12:36 PM, Martin Sebor wrote: The attached patch enhances -Wstringop-overflow to detect more instances of buffer overflow at compile time by handling non- c

Re: [PATCH] handle non-constant offsets in -Wstringop-overflow (PR 77608)

2017-11-21 Thread Jeff Law
On 11/19/2017 04:28 PM, Martin Sebor wrote: > On 11/18/2017 12:53 AM, Jeff Law wrote: >> On 11/17/2017 12:36 PM, Martin Sebor wrote: >>> The attached patch enhances -Wstringop-overflow to detect more >>> instances of buffer overflow at compile time by handling non- >>> constant offsets into the des

Re: [PATCH] handle non-constant offsets in -Wstringop-overflow (PR 77608)

2017-11-19 Thread Martin Sebor
On 11/18/2017 12:53 AM, Jeff Law wrote: On 11/17/2017 12:36 PM, Martin Sebor wrote: The attached patch enhances -Wstringop-overflow to detect more instances of buffer overflow at compile time by handling non- constant offsets into the destination object that are known to be in some range. The s

Re: [PATCH] handle non-constant offsets in -Wstringop-overflow (PR 77608)

2017-11-19 Thread Jeff Law
On 11/18/2017 09:47 AM, Martin Sebor wrote: > On 11/18/2017 12:53 AM, Jeff Law wrote: >> On 11/17/2017 12:36 PM, Martin Sebor wrote: >>> The attached patch enhances -Wstringop-overflow to detect more >>> instances of buffer overflow at compile time by handling non- >>> constant offsets into the des

Re: [PATCH] handle non-constant offsets in -Wstringop-overflow (PR 77608)

2017-11-18 Thread Martin Sebor
On 11/18/2017 12:53 AM, Jeff Law wrote: On 11/17/2017 12:36 PM, Martin Sebor wrote: The attached patch enhances -Wstringop-overflow to detect more instances of buffer overflow at compile time by handling non- constant offsets into the destination object that are known to be in some range. The s

Re: [PATCH] handle non-constant offsets in -Wstringop-overflow (PR 77608)

2017-11-17 Thread Jeff Law
On 11/17/2017 12:36 PM, Martin Sebor wrote: > The attached patch enhances -Wstringop-overflow to detect more > instances of buffer overflow at compile time by handling non- > constant offsets into the destination object that are known to > be in some range.  The solution could be improved by handli

[PATCH] handle non-constant offsets in -Wstringop-overflow (PR 77608)

2017-11-17 Thread Martin Sebor
The attached patch enhances -Wstringop-overflow to detect more instances of buffer overflow at compile time by handling non- constant offsets into the destination object that are known to be in some range. The solution could be improved by handling even more cases (e.g., anti-ranges or offsets re