import glibc-2.17-292.el7.src.rpm
Signed-off-by: zhangbinchen <zhangbinchen@openanolis.org>
This commit is contained in:
commit
ff0128648f
929 changed files with 436800 additions and 0 deletions
26
glibc-rh884008.patch
Normal file
26
glibc-rh884008.patch
Normal file
|
@ -0,0 +1,26 @@
|
|||
diff --git glibc-2.17-c758a686/nptl/tst-cleanup2.c glibc-2.17-c758a686/nptl/tst-cleanup2.c
|
||||
index 5bd1609..65af0f2 100644
|
||||
--- glibc-2.17-c758a686/nptl/tst-cleanup2.c
|
||||
+++ glibc-2.17-c758a686/nptl/tst-cleanup2.c
|
||||
@@ -34,6 +34,12 @@ static int
|
||||
do_test (void)
|
||||
{
|
||||
char *p = NULL;
|
||||
+ /* gcc can overwrite the success written value by scheduling instructions
|
||||
+ around sprintf. It is allowed to do this since according to C99 the first
|
||||
+ argument of sprintf is a character array and NULL is not a valid character
|
||||
+ array. Mark the return value as volatile so that it gets reloaded on
|
||||
+ return. */
|
||||
+ volatile int ret = 0;
|
||||
struct sigaction sa;
|
||||
|
||||
sa.sa_handler = sig_handler;
|
||||
@@ -50,7 +56,7 @@ do_test (void)
|
||||
if (setjmp (jmpbuf))
|
||||
{
|
||||
puts ("Exiting main...");
|
||||
- return 0;
|
||||
+ return ret;
|
||||
}
|
||||
|
||||
sprintf (p, "This should segv\n");
|
Loading…
Add table
Add a link
Reference in a new issue