Menu

#332 Error reading from TSN PD header

2.0.3.0
closed
None
2020-08-21
2020-05-04
No

In function trdp_pdReceive at lines 862, 869, 877, 950 (trdp_pdcom.c commit 2168) there is no support fora a TSN PD header.
A received message can ether have a header of type PD_HEADER or PD2_HEADER, all data read from the header has to consider the type.
A good solution to avoid mistakes in later updates of the sources is to copy the data to a temprery header type or use pointer to the variables in the header so the funcitons only needs to consider the header type once.

Discussion

  • Bernd Löhr

    Bernd Löhr - 2020-07-30
    • status: open --> pending
    • assigned_to: Bernd Löhr
    • Milestone: 2.1.0.0 --> 2.0.3.0
     
  • Bernd Löhr

    Bernd Löhr - 2020-07-30

    Fixed the handling of TSN header fields in pdReceive.

     
  • Bernd Löhr

    Bernd Löhr - 2020-08-21
    • Status: pending --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB