Home | History | Annotate | only in /src/tests/lib/libc/ssp
History log of /src/tests/lib/libc/ssp
RevisionDateAuthorComments
 1.12 10-Nov-2023  christos PR/57689: RVP: getcwd() not overridable with -D_FORTIFY_SOURCE
 1.11 03-Jun-2023  lukem bsd.own.mk: rename GCC_NO_* to CC_WNO_*

Rename compiler-warning-disable variables from
GCC_NO_warning
to
CC_WNO_warning
where warning is the full warning name as used by the compiler.

GCC_NO_IMPLICIT_FALLTHRU is CC_WNO_IMPLICIT_FALLTHROUGH

Using the convention CC_compilerflag, where compilerflag
is based on the full compiler flag name.
 1.10 13-Oct-2019  mrg introduce some common variables for use in GCC warning disables:

GCC_NO_FORMAT_TRUNCATION -Wno-format-truncation (GCC 7/8)
GCC_NO_STRINGOP_TRUNCATION -Wno-stringop-truncation (GCC 8)
GCC_NO_STRINGOP_OVERFLOW -Wno-stringop-overflow (GCC 8)
GCC_NO_CAST_FUNCTION_TYPE -Wno-cast-function-type (GCC 8)

use these to turn off warnings for most GCC-8 complaints. many
of these are false positives, most of the real bugs are already
commited, or are yet to come.


we plan to introduce versions of (some?) of these that use the
"-Wno-error=" form, which still displays the warnings but does
not make it an error, and all of the above will be re-considered
as either being "fix me" (warning still displayed) or "warning
is wrong."
 1.9 29-Sep-2019  mrg convert HAVE_GCC == 7 to HAVE_GCC >= 7.
 1.8 04-Feb-2019  mrg - tests explicitly check failure modes, ignore those warnings
 1.7 06-Apr-2014  christos branches: 1.7.24;
add stp*cpy() tests
 1.6 23-Sep-2012  joerg branches: 1.6.6;
Update LLVM/Clang snapshot to r164464. This adopts the GCC options for
the SSP parameters and a not-yet-default rewrite of SROA.
 1.5 04-Apr-2012  joerg branches: 1.5.2;
Disable new -Wstring-plus-int warning where needed for now.
Adjust various places that add GCC-only options to check for the active
compiler first.
 1.4 12-Jun-2011  plunky branches: 1.4.2;
reinstate ssp:raw test, slightly differently.. this one is built
with -fstack-protector-all and tests that the compiler built in
stack protection works, by poking directly outside the buffer
 1.3 12-Jun-2011  plunky don't pass -fstack-protector for these, the tests are actually for the
__*_chk functions included by -D_FORTIFY_SOURCE=2, and if the compiler
provides additional protection, it can mask broken functions..

(none of the _chk functions will return or process any data if
the length given is known to be larger than the buffer)
 1.2 26-Feb-2011  pgoyette branches: 1.2.2;
The ssp/raw test is useless. Remove it.
 1.1 27-Dec-2010  pgoyette branches: 1.1.2;
Migrate the ssp tests from regress to atf.

Of the 17 tests, 4 fail in both the regress and atf style. 3 additional
tests fails in atf that did NOT fail in regress: gets, fgets, and read.
I will investigate why, and update when I can, but it is still useful to
get these tests into the new format where they can be exercised.
 1.1.2.1 05-Mar-2011  bouyer Sync with HEAD
 1.2.2.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.4.2.3 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.4.2.2 30-Oct-2012  yamt sync with head
 1.4.2.1 17-Apr-2012  yamt sync with head
 1.5.2.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.5.2.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.6.6.1 10-Aug-2014  tls Rebase.
 1.7.24.2 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.7.24.1 10-Jun-2019  christos Sync with HEAD
 1.1 27-Dec-2010  pgoyette Migrate the ssp tests from regress to atf.

Of the 17 tests, 4 fail in both the regress and atf style. 3 additional
tests fails in atf that did NOT fail in regress: gets, fgets, and read.
I will investigate why, and update when I can, but it is still useful to
get these tests into the new format where they can be exercised.
 1.1 27-Dec-2010  pgoyette Migrate the ssp tests from regress to atf.

Of the 17 tests, 4 fail in both the regress and atf style. 3 additional
tests fails in atf that did NOT fail in regress: gets, fgets, and read.
I will investigate why, and update when I can, but it is still useful to
get these tests into the new format where they can be exercised.
 1.1 10-Nov-2023  christos PR/57689: RVP: getcwd() not overridable with -D_FORTIFY_SOURCE
 1.1 27-Dec-2010  pgoyette Migrate the ssp tests from regress to atf.

Of the 17 tests, 4 fail in both the regress and atf style. 3 additional
tests fails in atf that did NOT fail in regress: gets, fgets, and read.
I will investigate why, and update when I can, but it is still useful to
get these tests into the new format where they can be exercised.
 1.1 27-Dec-2010  pgoyette Migrate the ssp tests from regress to atf.

Of the 17 tests, 4 fail in both the regress and atf style. 3 additional
tests fails in atf that did NOT fail in regress: gets, fgets, and read.
I will investigate why, and update when I can, but it is still useful to
get these tests into the new format where they can be exercised.
 1.1 27-Dec-2010  pgoyette Migrate the ssp tests from regress to atf.

Of the 17 tests, 4 fail in both the regress and atf style. 3 additional
tests fails in atf that did NOT fail in regress: gets, fgets, and read.
I will investigate why, and update when I can, but it is still useful to
get these tests into the new format where they can be exercised.
 1.2 16-Jan-2017  christos PR/51893: Ngie Cooper: prevent toolchain from optimizing out memset call
 1.1 27-Dec-2010  pgoyette branches: 1.1.28; 1.1.32;
Migrate the ssp tests from regress to atf.

Of the 17 tests, 4 fail in both the regress and atf style. 3 additional
tests fails in atf that did NOT fail in regress: gets, fgets, and read.
I will investigate why, and update when I can, but it is still useful to
get these tests into the new format where they can be exercised.
 1.1.32.1 21-Apr-2017  bouyer Sync with HEAD
 1.1.28.1 20-Mar-2017  pgoyette Sync with HEAD
 1.6 24-Jul-2011  christos make sum volatile to avoid printing
 1.5 23-Jul-2011  martin gcc optimizes away the side effect free call to the "poke" function which
is supposed to smash our stack in this test case.
So: make it print out some dummy value based on the smashing changes.
 1.4 15-Jun-2011  plunky branches: 1.4.2;
gcc seems to pad small character arrays, use an array of ints

while here, make the poke function non-static, so that it doesnt
get optimised away
 1.3 12-Jun-2011  plunky reinstate ssp:raw test, slightly differently.. this one is built
with -fstack-protector-all and tests that the compiler built in
stack protection works, by poking directly outside the buffer
 1.2 26-Feb-2011  pgoyette The ssp/raw test is useless. Remove it.
 1.1 27-Dec-2010  pgoyette branches: 1.1.2;
Migrate the ssp tests from regress to atf.

Of the 17 tests, 4 fail in both the regress and atf style. 3 additional
tests fails in atf that did NOT fail in regress: gets, fgets, and read.
I will investigate why, and update when I can, but it is still useful to
get these tests into the new format where they can be exercised.
 1.1.2.1 05-Mar-2011  bouyer Sync with HEAD
 1.4.2.2 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.4.2.1 15-Jun-2011  cherry file h_raw.c was added on branch cherry-xenmp on 2011-06-23 14:20:39 +0000
 1.2 16-Jan-2017  christos PR/51894: Ngie Cooper: Use /dev/zero to read instead of stdin
 1.1 27-Dec-2010  pgoyette branches: 1.1.28; 1.1.32;
Migrate the ssp tests from regress to atf.

Of the 17 tests, 4 fail in both the regress and atf style. 3 additional
tests fails in atf that did NOT fail in regress: gets, fgets, and read.
I will investigate why, and update when I can, but it is still useful to
get these tests into the new format where they can be exercised.
 1.1.32.1 21-Apr-2017  bouyer Sync with HEAD
 1.1.28.1 20-Mar-2017  pgoyette Sync with HEAD
 1.1 27-Dec-2010  pgoyette Migrate the ssp tests from regress to atf.

Of the 17 tests, 4 fail in both the regress and atf style. 3 additional
tests fails in atf that did NOT fail in regress: gets, fgets, and read.
I will investigate why, and update when I can, but it is still useful to
get these tests into the new format where they can be exercised.
 1.1 27-Dec-2010  pgoyette Migrate the ssp tests from regress to atf.

Of the 17 tests, 4 fail in both the regress and atf style. 3 additional
tests fails in atf that did NOT fail in regress: gets, fgets, and read.
I will investigate why, and update when I can, but it is still useful to
get these tests into the new format where they can be exercised.
 1.1 27-Dec-2010  pgoyette Migrate the ssp tests from regress to atf.

Of the 17 tests, 4 fail in both the regress and atf style. 3 additional
tests fails in atf that did NOT fail in regress: gets, fgets, and read.
I will investigate why, and update when I can, but it is still useful to
get these tests into the new format where they can be exercised.
 1.1 06-Apr-2014  christos branches: 1.1.2; 1.1.4; 1.1.8;
add stp*cpy() tests
 1.1.8.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.1.8.1 06-Apr-2014  tls file h_stpcpy.c was added on branch tls-maxphys on 2014-08-20 00:04:50 +0000
 1.1.4.2 10-Aug-2014  tls Rebase.
 1.1.4.1 06-Apr-2014  tls file h_stpcpy.c was added on branch tls-earlyentropy on 2014-08-10 06:57:21 +0000
 1.1.2.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.1.2.1 06-Apr-2014  yamt file h_stpcpy.c was added on branch yamt-pagecache on 2014-05-22 11:42:21 +0000
 1.2 07-Apr-2014  christos branches: 1.2.2; 1.2.4; 1.2.8;
fix lossage with gcc-4.5
 1.1 06-Apr-2014  christos add stp*cpy() tests
 1.2.8.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.2.8.1 07-Apr-2014  tls file h_stpncpy.c was added on branch tls-maxphys on 2014-08-20 00:04:50 +0000
 1.2.4.2 10-Aug-2014  tls Rebase.
 1.2.4.1 07-Apr-2014  tls file h_stpncpy.c was added on branch tls-earlyentropy on 2014-08-10 06:57:21 +0000
 1.2.2.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.2.2.1 07-Apr-2014  yamt file h_stpncpy.c was added on branch yamt-pagecache on 2014-05-22 11:42:21 +0000
 1.1 27-Dec-2010  pgoyette Migrate the ssp tests from regress to atf.

Of the 17 tests, 4 fail in both the regress and atf style. 3 additional
tests fails in atf that did NOT fail in regress: gets, fgets, and read.
I will investigate why, and update when I can, but it is still useful to
get these tests into the new format where they can be exercised.
 1.1 27-Dec-2010  pgoyette Migrate the ssp tests from regress to atf.

Of the 17 tests, 4 fail in both the regress and atf style. 3 additional
tests fails in atf that did NOT fail in regress: gets, fgets, and read.
I will investigate why, and update when I can, but it is still useful to
get these tests into the new format where they can be exercised.
 1.1 27-Dec-2010  pgoyette Migrate the ssp tests from regress to atf.

Of the 17 tests, 4 fail in both the regress and atf style. 3 additional
tests fails in atf that did NOT fail in regress: gets, fgets, and read.
I will investigate why, and update when I can, but it is still useful to
get these tests into the new format where they can be exercised.
 1.1 27-Dec-2010  pgoyette Migrate the ssp tests from regress to atf.

Of the 17 tests, 4 fail in both the regress and atf style. 3 additional
tests fails in atf that did NOT fail in regress: gets, fgets, and read.
I will investigate why, and update when I can, but it is still useful to
get these tests into the new format where they can be exercised.
 1.3 15-Mar-2012  joerg Add __printflike attribution to use vprintf and friends with an argument
as format string.
 1.2 28-Dec-2010  christos branches: 1.2.6;
allocate the buffer at the same function level as the compiler so that
the compiler knows to emit the right _chk call.
 1.1 27-Dec-2010  pgoyette Migrate the ssp tests from regress to atf.

Of the 17 tests, 4 fail in both the regress and atf style. 3 additional
tests fails in atf that did NOT fail in regress: gets, fgets, and read.
I will investigate why, and update when I can, but it is still useful to
get these tests into the new format where they can be exercised.
 1.2.6.1 17-Apr-2012  yamt sync with head
 1.3 15-Mar-2012  joerg Add __printflike attribution to use vprintf and friends with an argument
as format string.
 1.2 28-Dec-2010  christos branches: 1.2.6;
allocate the buffer at the same function level as the compiler so that
the compiler knows to emit the right _chk call.
 1.1 27-Dec-2010  pgoyette Migrate the ssp tests from regress to atf.

Of the 17 tests, 4 fail in both the regress and atf style. 3 additional
tests fails in atf that did NOT fail in regress: gets, fgets, and read.
I will investigate why, and update when I can, but it is still useful to
get these tests into the new format where they can be exercised.
 1.2.6.1 17-Apr-2012  yamt sync with head
 1.8 10-Nov-2023  christos PR/57689: RVP: getcwd() not overridable with -D_FORTIFY_SOURCE
 1.7 06-Apr-2014  christos add stp*cpy() tests
 1.6 10-Jan-2014  martin branches: 1.6.2;
In the strcat test, smash the stack more severely (this all may depend
on alignment and stack frame details).
The gcc folks disagree with this test in general:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59750
 1.5 12-Jun-2011  plunky branches: 1.5.2; 1.5.8;
reinstate ssp:raw test, slightly differently.. this one is built
with -fstack-protector-all and tests that the compiler built in
stack protection works, by poking directly outside the buffer
 1.4 26-Feb-2011  pgoyette branches: 1.4.2;
The ssp/raw test is useless. Remove it.
 1.3 25-Feb-2011  pgoyette Disable the "raw" test case. The test is bogus, and did not work before
conversion from src/regress/ to atf
 1.2 27-Dec-2010  pgoyette branches: 1.2.2;
Since atf_check doesn't deal with a pipeline, modify the tests to pipe
the output of the echo commands to atf_check itself. This fixes the
three new ssp failures.

Note that the raw, strcpy, vsprintf, and vsnprintf tests still fail, but
they failed in the old 'regress' style, too.
 1.1 27-Dec-2010  pgoyette Migrate the ssp tests from regress to atf.

Of the 17 tests, 4 fail in both the regress and atf style. 3 additional
tests fails in atf that did NOT fail in regress: gets, fgets, and read.
I will investigate why, and update when I can, but it is still useful to
get these tests into the new format where they can be exercised.
 1.2.2.1 05-Mar-2011  bouyer Sync with HEAD
 1.4.2.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.5.8.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.5.2.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.6.2.1 10-Aug-2014  tls Rebase.

RSS XML Feed