[prev in list] [next in list] [prev in thread] [next in thread]
List: netbsd-tech-userlevel
Subject: Re: __ssp_overlap() bug?
From: christos () zoulas ! com (Christos Zoulas)
Date: 2015-09-03 7:05:30
Message-ID: 20150903070530.D9FD117FDAB () rebar ! astron ! com
[Download RAW message or body]
On Sep 2, 9:31pm, plunky@ogmig.net (Iain Hibbert) wrote:
-- Subject: __ssp_overlap() bug?
| Hi
|
| I think the recently added __ssp_overlap() macro is incorrect, as adjacent
| areas will trigger it. example test code below shows the problem..
|
| #include <ssp/ssp.h>
| #include <stdio.h>
|
| int a, b;
|
| int
| main(int argc, char *argv[])
| {
|
| printf("a %p, b %p, l %zu\n", &a, &b, sizeof(a));
|
| if (__ssp_overlap((char *)&a, (char *)&b, sizeof(a)))
| printf("a and b overlap\n");
| else
| printf("no overlap\n");
|
| return 0;
| }
|
| and patch to fix.. is this ok to commit?
Yes, please go for it!
Thanks,
christos
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic