Test "Error handling improvement" on arm64
The following test set: execve: fix memory leak add: NULL check for master_channel at IKC interrupt_handler. Fix the check routine for elf sections (Fujitsu: POSTK_TEMP_FIX_77) Change-Id: I16c2a341c48f6df10a4839be08b93ea16bda8fbe Refs: #727 Refs: #873 Refs: #1011
This commit is contained in:
committed by
Masamichi Takagi
parent
ec844bb6e3
commit
95e90c727e
13
test/error_handling/arm64/patch/issue1011.patch
Normal file
13
test/error_handling/arm64/patch/issue1011.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
diff --git a/executer/user/mcexec.c b/executer/user/mcexec.c
|
||||
index 6210921..2cd08ba 100644
|
||||
--- a/executer/user/mcexec.c
|
||||
+++ b/executer/user/mcexec.c
|
||||
@@ -478,7 +478,7 @@ struct program_load_desc *load_interp(struct program_load_desc *desc0, FILE *fp)
|
||||
j++;
|
||||
}
|
||||
}
|
||||
- desc->num_sections = j;
|
||||
+ desc->num_sections = -1; // Test for num_secionts check Issue#1011
|
||||
|
||||
desc->entry = hdr.e_entry;
|
||||
desc->interp_align = align;
|
||||
15
test/error_handling/arm64/patch/issue727.patch
Normal file
15
test/error_handling/arm64/patch/issue727.patch
Normal file
@@ -0,0 +1,15 @@
|
||||
diff --git a/executer/user/mcexec.c b/executer/user/mcexec.c
|
||||
index 6210921..301d2a5 100644
|
||||
--- a/executer/user/mcexec.c
|
||||
+++ b/executer/user/mcexec.c
|
||||
@@ -3769,7 +3769,9 @@ return_execve1:
|
||||
|
||||
/* Copy program image phase */
|
||||
case 2:
|
||||
-
|
||||
+ fprintf(stderr, "execve killed\n");
|
||||
+ fflush(stderr);
|
||||
+ kill(getpid(), SIGKILL);
|
||||
ret = -1;
|
||||
/* Alloc descriptor */
|
||||
desc = malloc(w.sr.args[2]);
|
||||
Reference in New Issue
Block a user