#4759: RPi: crashes when shell starts
------------------------+--------------------
  Reporter:  jkillelea  |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  normal     |  Milestone:  6.1
 Component:  admin      |    Version:  6
  Severity:  normal     |   Keywords:
Blocked By:             |   Blocking:
------------------------+--------------------
 I have found two possible memory exceptions under `rtems_shell_init` when
 running on the raspberry pi 1 BSP.

 First, a possible null pointer dereference from `getpwuid_r(0, &pwd, NULL,
 0, &pwd_res);` in `rtems_shell_init_once`. The NULL pointer is never
 checked before it is used as a backing buffer for `pwd`.

 Second, usage of `stdin`, `stdout`, and `stderr` cause memory exceptions
 in `rtems_shell_run` when used, for example `shell_env->parent_stdin  =
 stdin;`.

--
Ticket URL: <http://devel.rtems.org/ticket/4759>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to