[RTEMS Project] #4820: Hazardous cast

RTEMS trac trac at rtems.org
Mon Jan 23 11:45:27 UTC 2023


#4820: Hazardous cast
----------------------------+--------------------
  Reporter:  Daniel Páscoa  |      Owner:  (none)
      Type:  defect         |     Status:  new
  Priority:  normal         |  Milestone:
 Component:  admin          |    Version:
  Severity:  normal         |   Keywords:
Blocked By:                 |   Blocking:
----------------------------+--------------------
 **Description:**
 Converting a function pointer to a different type of pointer can lead to
 unpredictable and undefined behavior. It is important to note that
 attempting to convert a pointer to a function to a pointer of a different
 type of function is particularly dangerous and should be avoided.

 The attached excel lists in a systematic way the sources where this issue
 applies.

 **Additional Notes:**
 This ticket was raised as an outcome of the Independent SW Verification
 and Validation (ISVV) for ESA-promoted RTEMS SMP Qualification Data Packs
 (https://rtems-qual.io.esa.int). Original ISVV reference for this issue is
 RTEMS-SMP-CODE-VER-079.

 **File list (please check the attached excel for more information):**
 bsps\shared\irq\irq-handler-iterate.c
 bsps\sparc\leon3\include\tm27.h

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


More information about the bugs mailing list