Advertisement
tyler569

Untitled

Jan 17th, 2021
290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. $ make
  2. CC exec.o
  3. kernel/exec.c: In function 'do_execve':
  4. kernel/exec.c:223:24: error: initialization of 'char **' from incompatible pointer type 'char (*)[256]' [-Werror=incompatible-pointer-types]
  5. 223 | char **user_argv = &((char (*)[256])USER_ARGV)[0];
  6. | ^
  7. kernel/exec.c:224:5: error: 'exec_copy_args' accessing 8 bytes in a region of size 0 [-Werror=stringop-overflow=]
  8. 224 | exec_copy_args(user_argv, stored_args);
  9. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  10. kernel/exec.c:224:5: note: referencing argument 1 of type 'char **'
  11. kernel/exec.c:57:14: note: in a call to function 'exec_copy_args'
  12. 57 | char *const *exec_copy_args(char *out[], char *const args[]) {
  13. | ^~~~~~~~~~~~~~
  14. cc1: all warnings being treated as errors
  15. make: *** [build.mk:387: build-x86_64/kernel/exec.o] Error 1
  16. $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement