[RTEMS Project] #4350: Infinite loop in rtems-fdt.c

RTEMS trac trac at rtems.org
Sun Mar 21 06:59:36 UTC 2021


#4350: Infinite loop in rtems-fdt.c
----------------------+--------------------
  Reporter:  niteesh  |      Owner:  (none)
      Type:  defect   |     Status:  new
  Priority:  normal   |  Milestone:
 Component:  lib      |    Version:  5
  Severity:  normal   |   Keywords:
Blocked By:           |   Blocking:
----------------------+--------------------
 The function rtems_fdt_load in file rtems-fdt.c contains an infinite loop.
 https://git.rtems.org/rtems/tree/cpukit/libmisc/rtems-fdt/rtems-fdt.c#n583
 The loop termination condition, size is not being decremented in the above
 line. Instead, the amount of bytes read is being decremented.

 This bug is present in RTEMS 6 as well as 5

 I have attached a patch below that fixes this.

--
Ticket URL: <http://devel.rtems.org/ticket/4350>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list