Menu

#132 tlp_publish: Check of datasize wrong if using marshaller

1.3.2.0
closed
None
2017-02-09
2017-01-17
No

Problem: If the datasize of tlp_publish is bigger than TRDP_MAX_PD_DATA_SIZE, the function returns TRDP_PARAM_ERR. But if the marshaller is used, the data will be reduced by the marhsaller and the sended data send is smaller than datasize of tlp_publish.
--> Actually the unmarshalled data size is checked instead of the marshalled data size
Solution: The check of datasize must be after the marshaller call with the size of the marshalled data.

Discussion

  • Bernd Löhr

    Bernd Löhr - 2017-01-20
    • status: open --> accepted
    • assigned_to: Bernd Löhr
    • Milestone: 1.4.0.0 --> 1.3.2.0
     
  • Bernd Löhr

    Bernd Löhr - 2017-02-09
    • status: accepted --> pending
     
  • Bernd Löhr

    Bernd Löhr - 2017-02-09

    Put the checks after the marshalling calls.

     
  • Bernd Löhr

    Bernd Löhr - 2017-03-02
    • Status: pending --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB