Skip to content

Compare value length to used length () in reading data from message buffer.#297

Merged
MichalPrincNXP merged 3 commits into
EmbeddedRPC:developfrom
ACRIOS-Systems:feature/improve_cursor
Jul 26, 2022
Merged

Compare value length to used length () in reading data from message buffer.#297
MichalPrincNXP merged 3 commits into
EmbeddedRPC:developfrom
ACRIOS-Systems:feature/improve_cursor

Conversation

@Hadatko
Copy link
Copy Markdown
Member

@Hadatko Hadatko commented Jul 12, 2022

Signed-off-by: Cervenka Dusan cervenka@acrios.com

Pull request

Choose Correct

  • bug
  • feature

Describe the pull request

This should cover cases when we will try read more data that we received.

To Reproduce

Expected behavior

Screenshots

Desktop (please complete the following information):

  • OS:
  • eRPC Version:

Steps you didn't forgot to do

  • I checked if other PR isn't solving this issue.
  • I read Contribution details and did appropriate actions.
  • PR code is tested.
  • PR code is formatted.

Additional context

…uffer.

Signed-off-by: Cervenka Dusan <cervenka@acrios.com>
@Hadatko Hadatko requested a review from MichalPrincNXP July 12, 2022 13:31
@Hadatko Hadatko self-assigned this Jul 12, 2022
@Hadatko Hadatko linked an issue Jul 12, 2022 that may be closed by this pull request
2 tasks
we need be at the end of already written data.

Signed-off-by: Cervenka Dusan <cervenka@acrios.com>
@Hadatko Hadatko linked an issue Jul 12, 2022 that may be closed by this pull request
2 tasks
@amgross
Copy link
Copy Markdown
Contributor

amgross commented Jul 13, 2022

I added my comments, basically it looks great, thank you very much for the hard work

@amgross
Copy link
Copy Markdown
Contributor

amgross commented Jul 13, 2022

Does it planned to release at 1.9.1? (same question for #287 and #276 ), I see in the milestones that release 1.9.1 has delay.

@Hadatko Hadatko added this to the 1.10.0 milestone Jul 13, 2022
@Hadatko
Copy link
Copy Markdown
Member Author

Hadatko commented Jul 13, 2022

I don't see any of your comments in this PR. Did you send them?
Milestone release date is aligned with NXP sdk release which i was guessing.

Comment thread erpc_c/infra/erpc_message_buffer.cpp Outdated
Comment thread erpc_c/infra/erpc_message_buffer.cpp Outdated
Signed-off-by: Cervenka Dusan <cervenka@acrios.com>
@Hadatko Hadatko force-pushed the feature/improve_cursor branch from c946c46 to 0767073 Compare July 22, 2022 08:17
@Hadatko
Copy link
Copy Markdown
Member Author

Hadatko commented Jul 22, 2022

@amgross Is it ok now?

Comment thread erpc_c/infra/erpc_message_buffer.cpp Outdated
@MichalPrincNXP MichalPrincNXP merged commit 01746d0 into EmbeddedRPC:develop Jul 26, 2022
@MichalPrincNXP
Copy link
Copy Markdown
Member

Thanks for the effort!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Cursor write may change m_used to incorrect value [BUG] Cursor read may read unstructured data

3 participants